aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java3
2 files changed, 5 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 6b68777f..cd0bc859 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 30
- versionCode 81
- versionName "5.1.0-beta1"
+ versionCode 82
+ versionName "5.1.0-beta2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
index c578c437..4a9703f7 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java
@@ -1704,6 +1704,9 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
}
public void markPostAsRead(Post post) {
+ if (readPosts == null) {
+ readPosts = new ArrayList<>();
+ }
readPosts.add(post.getId());
}