fix timeline filtering not working after app restart
This commit is contained in:
parent
274343a064
commit
5dbe3c927e
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,12 @@ public class TimelineFragment extends SFragment implements
|
||||||
adapter.setMediaPreviewEnabled(mediaPreviewEnabled);
|
adapter.setMediaPreviewEnabled(mediaPreviewEnabled);
|
||||||
recyclerView.setAdapter(adapter);
|
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);
|
timelineReceiver = new TimelineReceiver(this, this);
|
||||||
LocalBroadcastManager.getInstance(context.getApplicationContext())
|
LocalBroadcastManager.getInstance(context.getApplicationContext())
|
||||||
.registerReceiver(timelineReceiver, TimelineReceiver.getFilter(kind));
|
.registerReceiver(timelineReceiver, TimelineReceiver.getFilter(kind));
|
||||||
|
|
Loading…
Reference in a new issue