|
|
@ -243,7 +243,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
|
|
|
if (b != null) {
|
|
|
|
if (b != null) {
|
|
|
|
if (b.getBoolean(Helper.RECEIVE_REDRAW_TOPBAR, false)) {
|
|
|
|
if (b.getBoolean(Helper.RECEIVE_REDRAW_TOPBAR, false)) {
|
|
|
|
List<MastodonList> mastodonLists = (List<MastodonList>) b.getSerializable(Helper.RECEIVE_MASTODON_LIST);
|
|
|
|
List<MastodonList> mastodonLists = (List<MastodonList>) b.getSerializable(Helper.RECEIVE_MASTODON_LIST);
|
|
|
|
if (mastodonLists.size() == 0) {
|
|
|
|
if (mastodonLists != null && mastodonLists.size() == 0) {
|
|
|
|
mastodonLists = null;
|
|
|
|
mastodonLists = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
redrawPinned(mastodonLists);
|
|
|
|
redrawPinned(mastodonLists);
|
|
|
@ -1228,7 +1228,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
|
|
|
//Fetch remote lists for the authenticated account and update them
|
|
|
|
//Fetch remote lists for the authenticated account and update them
|
|
|
|
new ViewModelProvider(BaseMainActivity.this).get(TimelinesVM.class).getLists(currentInstance, currentToken)
|
|
|
|
new ViewModelProvider(BaseMainActivity.this).get(TimelinesVM.class).getLists(currentInstance, currentToken)
|
|
|
|
.observe(this, mastodonLists -> {
|
|
|
|
.observe(this, mastodonLists -> {
|
|
|
|
if (mastodonLists.size() == 0) {
|
|
|
|
if (mastodonLists != null && mastodonLists.size() == 0) {
|
|
|
|
mastodonLists = null;
|
|
|
|
mastodonLists = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
PinnedTimelineHelper.redrawTopBarPinned(BaseMainActivity.this, binding, pinned, bottomMenu, mastodonLists);
|
|
|
|
PinnedTimelineHelper.redrawTopBarPinned(BaseMainActivity.this, binding, pinned, bottomMenu, mastodonLists);
|
|
|
|