diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-07 13:39:34 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-07 13:39:34 +0000 |
commit | 0d232fc4b86f259b6eeed6919a54017689be11b1 (patch) | |
tree | 0882551dd6befb2badc42e086dae56b0be0c1741 /app/src/main/java/ml/docilealligator | |
parent | 8e05bac93615fc86405541a6bab8378ca267debc (diff) | |
download | infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar.gz infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar.bz2 infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar.lz infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar.xz infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.tar.zst infinity-for-reddit-0d232fc4b86f259b6eeed6919a54017689be11b1.zip |
View video or image to mark the post as read.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java index a77e3ad2..ab735cb2 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -1981,6 +1981,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView } Post post = getItem(position); if (post != null) { + ((PostBaseViewHolder) this).markPostRead(post); Intent intent = new Intent(mActivity, ViewVideoActivity.class); if (post.isGfycat()) { intent.putExtra(ViewVideoActivity.EXTRA_VIDEO_TYPE, ViewVideoActivity.VIDEO_TYPE_GFYCAT); @@ -2225,6 +2226,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView } Post post = getItem(position); if (post != null) { + ((PostBaseViewHolder) this).markPostRead(post); if (post.getPostType() == Post.VIDEO_TYPE) { Intent intent = new Intent(mActivity, ViewVideoActivity.class); if (post.isGfycat()) { @@ -2600,6 +2602,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView } Post post = getItem(position); if (post != null) { + markPostRead(post); if (post.getPostType() == Post.VIDEO_TYPE) { Intent intent = new Intent(mActivity, ViewVideoActivity.class); if (post.isGfycat()) { |