mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-08-26 09:51:44 +02:00
Compare commits
2 Commits
6c3d26fe5a
...
ae125feae0
Author | SHA1 | Date | |
---|---|---|---|
|
ae125feae0 | ||
|
03c1792262 |
@@ -3,11 +3,13 @@ package eu.toldi.infinityforlemmy.dto;
|
||||
public class ReadPostDTO {
|
||||
|
||||
private int post_id;
|
||||
private int[] post_ids;
|
||||
private boolean read;
|
||||
private String auth;
|
||||
|
||||
public ReadPostDTO(int post_id, boolean read, String auth) {
|
||||
this.post_id = post_id;
|
||||
this.post_ids = new int[]{post_id};
|
||||
this.read = read;
|
||||
this.auth = auth;
|
||||
}
|
||||
|
@@ -180,7 +180,7 @@ public class PostViewModel extends ViewModel {
|
||||
post -> !post.isRead() || !currentlyReadPostIdsLiveData.getValue()))), ViewModelKt.getViewModelScope(this));
|
||||
|
||||
currentlyReadPostIdsLiveData.setValue(postHistorySharedPreferences != null
|
||||
&& postHistorySharedPreferences.getBoolean((accountName == null ? "" : accountName) + SharedPreferencesUtils.HIDE_READ_POSTS_AUTOMATICALLY_BASE, false));
|
||||
&& postHistorySharedPreferences.getBoolean((accountName == null ? "" : accountName) + SharedPreferencesUtils.HIDE_READ_POSTS_AUTOMATICALLY_BASE, false) && !userWhere.equals(PostPagingSource.USER_WHERE_SAVED));
|
||||
}
|
||||
|
||||
public PostViewModel(Executor executor, RetrofitHolder retrofit, String accessToken, String accountName,
|
||||
|
Reference in New Issue
Block a user