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); statusReport = (Status) getArguments().getSerializable(Helper.ARG_STATUS_REPORT);
} }
if (tagTimeline != null) { if (tagTimeline != null) {
ident = tagTimeline.name; ident = "@T@" + tagTimeline.name;
if (tagTimeline.isART) { if (tagTimeline.isART) {
timelineType = Timeline.TimeLineEnum.ART; timelineType = Timeline.TimeLineEnum.ART;
} }
} else if (list_id != null) { } else if (list_id != null) {
ident = list_id; ident = "@l@" + list_id;
} else if (remoteInstance != null) { } else if (remoteInstance != null) {
ident = remoteInstance; ident = "@R@" + remoteInstance;
} else if (search != null) {
ident = "@S@" + search;
} else { } else {
ident = null; ident = null;
} }

View File

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