mirror of
https://github.com/KokaKiwi/BarInsta
synced 2026-03-05 03:51:36 +00:00
restore dm indicator, release prep, partially address #431
This commit is contained in:
parent
22fc894c9d
commit
9ca9cca33d
4 changed files with 45 additions and 13 deletions
|
|
@ -249,8 +249,8 @@ public final class FollowViewerFragment extends Fragment implements SwipeRefresh
|
|||
loading = true;
|
||||
setSubtitle(R.string.followers_compare);
|
||||
allFollowing.clear();
|
||||
binding.swipeRefreshLayout.setRefreshing(true);
|
||||
if (moreAvailable) {
|
||||
binding.swipeRefreshLayout.setRefreshing(true);
|
||||
Toast.makeText(getContext(), R.string.follower_start_compare, Toast.LENGTH_LONG).show();
|
||||
friendshipService.getList(isFollowersList,
|
||||
profileId,
|
||||
|
|
@ -258,6 +258,7 @@ public final class FollowViewerFragment extends Fragment implements SwipeRefresh
|
|||
isFollowersList ? followersFetchCb : followingFetchCb);
|
||||
}
|
||||
else if (followersModels.size() == 0 || followingModels.size() == 0) {
|
||||
binding.swipeRefreshLayout.setRefreshing(true);
|
||||
Toast.makeText(getContext(), R.string.follower_start_compare, Toast.LENGTH_LONG).show();
|
||||
friendshipService.getList(!isFollowersList,
|
||||
profileId,
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ import awais.instagrabber.models.enums.RavenExpiringMediaType;
|
|||
import awais.instagrabber.models.enums.RavenMediaViewType;
|
||||
import awaisomereport.LogCollector;
|
||||
|
||||
import static awais.instagrabber.utils.Utils.settingsHelper;
|
||||
|
||||
public final class ResponseBodyUtils {
|
||||
private static final String TAG = "ResponseBodyUtils";
|
||||
|
||||
|
|
@ -261,7 +263,10 @@ public final class ResponseBodyUtils {
|
|||
final String threadPrevCursor = data.has("prev_cursor") ? data.getString("prev_cursor") : null;
|
||||
|
||||
final boolean threadHasOlder = data.getBoolean("has_older");
|
||||
final long unreadCount = data.optLong("read_state", 0);
|
||||
|
||||
final String cookie = settingsHelper.getString(Constants.COOKIE);
|
||||
final String userIdFromCookie = CookieUtils.getUserIdFromCookie(cookie);
|
||||
final long unreadCount = data.getJSONObject("last_seen_at").getJSONObject(userIdFromCookie).getString("item_id").equals(threadNewestCursor) ? 0 : 1;
|
||||
|
||||
final long lastActivityAt = data.optLong("last_activity_at");
|
||||
final boolean named = data.optBoolean("named");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue