aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-11-04 14:43:21 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-11-04 14:43:21 +0000
commitb059b2d5033f41859b538abf954cfd1c9e9f7d75 (patch)
tree2854b0ccecca2968b541e134c439157d70ecc24b /app/src
parent9e19b6f09286f4e51012600213a331d1dfd2ce1d (diff)
downloadinfinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar.gz
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar.bz2
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar.lz
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar.xz
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.tar.zst
infinity-for-reddit-b059b2d5033f41859b538abf954cfd1c9e9f7d75.zip
Version 5.1.0-beta2. Fix crash when hiding read posts.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java3
1 files changed, 3 insertions, 0 deletions
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());
}