From 5dbe3c927e6e7dd49ceaa6087f0195592bf0a024 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 8 Feb 2018 19:12:02 +0100 Subject: [PATCH] fix timeline filtering not working after app restart --- .../com/keylesspalace/tusky/fragment/TimelineFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 5276023f..4407df6e 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java @@ -189,6 +189,12 @@ public class TimelineFragment extends SFragment implements adapter.setMediaPreviewEnabled(mediaPreviewEnabled); recyclerView.setAdapter(adapter); + boolean filter = preferences.getBoolean("tabFilterHomeReplies", true); + filterRemoveReplies = kind == Kind.HOME && !filter; + + filter = preferences.getBoolean("tabFilterHomeBoosts", true); + filterRemoveReblogs = kind == Kind.HOME && !filter; + timelineReceiver = new TimelineReceiver(this, this); LocalBroadcastManager.getInstance(context.getApplicationContext()) .registerReceiver(timelineReceiver, TimelineReceiver.getFilter(kind));