mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 04:37:25 +01:00
Disable marking posts as read if in anonymous mode.
This commit is contained in:
parent
35ae9c547f
commit
72fd7917af
@ -1936,7 +1936,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
||||
}
|
||||
|
||||
void markPostRead(Post post) {
|
||||
if (!post.isRead()) {
|
||||
if (mAccessToken != null && !post.isRead()) {
|
||||
post.markAsRead();
|
||||
cardView.setBackgroundTintList(ColorStateList.valueOf(mReadPostCardViewBackgroundColor));
|
||||
titleTextView.setTextColor(mReadPostTitleColor);
|
||||
@ -2991,7 +2991,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
||||
}
|
||||
|
||||
void markPostRead(Post post) {
|
||||
if (!post.isRead()) {
|
||||
if (mAccessToken != null && !post.isRead()) {
|
||||
post.markAsRead();
|
||||
itemView.setBackgroundColor(mReadPostCardViewBackgroundColor);
|
||||
titleTextView.setTextColor(mReadPostTitleColor);
|
||||
|
Loading…
Reference in New Issue
Block a user