Tag cannot be pinned
This commit is contained in:
parent
39f248e0a6
commit
bc8dfec325
|
@ -105,8 +105,10 @@ public class HashTagActivity extends BaseActivity {
|
||||||
});
|
});
|
||||||
ReorderVM reorderVM = new ViewModelProvider(HashTagActivity.this).get(ReorderVM.class);
|
ReorderVM reorderVM = new ViewModelProvider(HashTagActivity.this).get(ReorderVM.class);
|
||||||
reorderVM.getAllPinned().observe(HashTagActivity.this, pinned -> {
|
reorderVM.getAllPinned().observe(HashTagActivity.this, pinned -> {
|
||||||
if (pinned != null) {
|
if (pinned == null) {
|
||||||
this.pinned = pinned;
|
pinned = new Pinned();
|
||||||
|
pinned.pinnedTimelines = new ArrayList<>();
|
||||||
|
}
|
||||||
pinnedTag = false;
|
pinnedTag = false;
|
||||||
if (pinned.pinnedTimelines != null) {
|
if (pinned.pinnedTimelines != null) {
|
||||||
for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) {
|
for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) {
|
||||||
|
@ -120,7 +122,6 @@ public class HashTagActivity extends BaseActivity {
|
||||||
}
|
}
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
if (MainActivity.filterFetched && MainActivity.mainFilters != null) {
|
if (MainActivity.filterFetched && MainActivity.mainFilters != null) {
|
||||||
mutedTag = false;
|
mutedTag = false;
|
||||||
|
|
Loading…
Reference in New Issue