From ac1e5e991ee59b6f1b3b37743f9560d39338725b Mon Sep 17 00:00:00 2001 From: Grishka Date: Sat, 21 Oct 2023 11:34:55 +0300 Subject: [PATCH] Don't auto-refresh notifications if the user scrolled too far --- .../fragments/NotificationsListFragment.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java index 23b85dc9..ffa2a1ae 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/NotificationsListFragment.java @@ -130,7 +130,7 @@ public class NotificationsListFragment extends BaseStatusListFragment=0;i--){ + if(list.getChildViewHolder(list.getChildAt(i)) instanceof StatusDisplayItem.Holder itemHolder){ + String id=itemHolder.getItemID(); + for(int j=0;j