mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +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) {
|
void markPostRead(Post post) {
|
||||||
if (!post.isRead()) {
|
if (mAccessToken != null && !post.isRead()) {
|
||||||
post.markAsRead();
|
post.markAsRead();
|
||||||
cardView.setBackgroundTintList(ColorStateList.valueOf(mReadPostCardViewBackgroundColor));
|
cardView.setBackgroundTintList(ColorStateList.valueOf(mReadPostCardViewBackgroundColor));
|
||||||
titleTextView.setTextColor(mReadPostTitleColor);
|
titleTextView.setTextColor(mReadPostTitleColor);
|
||||||
@ -2991,7 +2991,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
|
|||||||
}
|
}
|
||||||
|
|
||||||
void markPostRead(Post post) {
|
void markPostRead(Post post) {
|
||||||
if (!post.isRead()) {
|
if (mAccessToken != null && !post.isRead()) {
|
||||||
post.markAsRead();
|
post.markAsRead();
|
||||||
itemView.setBackgroundColor(mReadPostCardViewBackgroundColor);
|
itemView.setBackgroundColor(mReadPostCardViewBackgroundColor);
|
||||||
titleTextView.setTextColor(mReadPostTitleColor);
|
titleTextView.setTextColor(mReadPostTitleColor);
|
||||||
|
Loading…
Reference in New Issue
Block a user