Fix issue #66 - Bad tags when clicking on a tag

This commit is contained in:
Thomas 2022-05-19 15:48:22 +02:00
parent ffbad79826
commit 42df8dfcb6
2 changed files with 6 additions and 4 deletions

View File

@ -178,14 +178,16 @@ public class FragmentMastodonTimeline extends Fragment {
statusReport = (Status) getArguments().getSerializable(Helper.ARG_STATUS_REPORT);
}
if (tagTimeline != null) {
ident = tagTimeline.name;
ident = "@T@" + tagTimeline.name;
if (tagTimeline.isART) {
timelineType = Timeline.TimeLineEnum.ART;
}
} else if (list_id != null) {
ident = list_id;
ident = "@l@" + list_id;
} else if (remoteInstance != null) {
ident = remoteInstance;
ident = "@R@" + remoteInstance;
} else if (search != null) {
ident = "@S@" + search;
} else {
ident = null;
}

View File

@ -42,7 +42,7 @@ public class TopBarVM extends AndroidViewModel {
Handler mainHandler = new Handler(Looper.getMainLooper());
Pinned pinnedTimeline = null;
try {
pinnedTimeline = pinned.getAllPinned(BaseMainActivity.accountWeakReference.get());
pinnedTimeline = pinned.getPinned(BaseMainActivity.accountWeakReference.get());
} catch (DBException e) {
e.printStackTrace();
}