fix timeline filtering not working after app restart

main
Conny Duck 7 years ago
parent c2df3ee712
commit faae2acfe7
  1. 6
      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));

Loading…
Cancel
Save