aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-07 14:26:29 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-07 14:26:29 +0000
commit4e14b13fba9409c022d46657fad67b55532ffcf8 (patch)
treeed89a18d724012fd78dca7452ca959e49cfa1fc3
parentd60c5ac5dafb5d8eb010cf1d177cedb0557abc20 (diff)
downloadinfinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.gz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.bz2
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.lz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.xz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.zst
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.zip
Fixed force stop when opening link type post. Update libraries.
Diffstat (limited to '')
-rw-r--r--.idea/caches/build_file_checksums.serbin533 -> 533 bytes
-rw-r--r--.idea/caches/gradle_models.serbin305910 -> 309041 bytes
-rw-r--r--app/build.gradle18
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java2
4 files changed, 10 insertions, 10 deletions
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
index 93788951..0c225c72 100644
--- a/.idea/caches/build_file_checksums.ser
+++ b/.idea/caches/build_file_checksums.ser
Binary files differ
diff --git a/.idea/caches/gradle_models.ser b/.idea/caches/gradle_models.ser
index e6457aaf..8f1fca60 100644
--- a/.idea/caches/gradle_models.ser
+++ b/.idea/caches/gradle_models.ser
Binary files differ
diff --git a/app/build.gradle b/app/build.gradle
index 39a97ec9..a62ceb0b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -48,29 +48,29 @@ dependencies {
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.pwittchen:swipe-rx2:0.3.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// Room components
implementation "androidx.room:room-runtime:$rootProject.roomVersion"
annotationProcessor "androidx.room:room-compiler:$rootProject.roomVersion"
// Lifecycle components
implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.archLifecycleVersion"
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$rootProject.archLifecycleVersion"
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
- implementation 'io.reactivex.rxjava2:rxjava:2.2.0'
+ implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
+ implementation 'io.reactivex.rxjava2:rxjava:2.2.12'
implementation 'com.squareup.retrofit2:retrofit:2.6.1'
implementation 'com.squareup.retrofit2:converter-scalars:2.6.1'
implementation 'jp.wasabeef:glide-transformations:4.0.0'
- implementation 'com.google.dagger:dagger:2.17'
- annotationProcessor 'com.google.dagger:dagger-compiler:2.17'
+ implementation 'com.google.dagger:dagger:2.24'
+ annotationProcessor 'com.google.dagger:dagger-compiler:2.24'
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
implementation 'com.github.santalu:aspect-ratio-imageview:1.0.6'
implementation 'androidx.paging:paging-runtime:2.1.0'
implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE'
- implementation 'io.noties.markwon:core:4.1.0'
- implementation 'io.noties.markwon:linkify:4.1.0'
- implementation 'io.noties.markwon:ext-strikethrough:4.1.0'
- implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.16'
+ implementation 'io.noties.markwon:core:4.1.1'
+ implementation 'io.noties.markwon:linkify:4.1.1'
+ implementation 'io.noties.markwon:ext-strikethrough:4.1.1'
+ implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.17'
implementation 'com.github.Ferfalk:SimpleSearchView:0.1.3'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.libRG:customtextview:2.2'
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
index b1f756e8..6ad3638f 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
@@ -470,7 +470,7 @@ class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVie
String noPreviewLinkDomain = Uri.parse(mPost.getUrl()).getHost();
((PostDetailViewHolder) holder).linkTextView.setText(noPreviewLinkDomain);
- if(!mPost.getSelfText().equals("")) {
+ if(mPost.getSelfText() != null && !mPost.getSelfText().equals("")) {
((PostDetailViewHolder) holder).mContentMarkdownView.setVisibility(View.VISIBLE);
mMarkwon.setMarkdown(((PostDetailViewHolder) holder).mContentMarkdownView, mPost.getSelfText());
}