From f3a3013ffadd5cbcc9f389814c6cbba0b061ad89 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 22 Aug 2018 21:19:56 +0200 Subject: [PATCH] fix repeating toots in timelines (#789) --- .../com/keylesspalace/tusky/fragment/TimelineFragment.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java index 62fe57c8..dc8644d6 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java @@ -139,9 +139,9 @@ public class TimelineFragment extends SFragment implements private boolean bottomLoading; @Nullable - private String bottomId; + private String bottomId = null; @Nullable - private String topId; + private String topId = null; private long maxPlaceholderId = -1; private boolean didLoadEverythingBottom; @@ -227,9 +227,6 @@ public class TimelineFragment extends SFragment implements setupTimelinePreferences(); setupNothingView(); - bottomId = null; - topId = null; - if (statuses.isEmpty()) { progressBar.setVisibility(View.VISIBLE); bottomLoading = true;