From cdc1f933908a6becfadf54a1d432797b687902e5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 12 Sep 2022 16:58:11 +0200 Subject: [PATCH] Last fixes --- .../fedilab/android/ui/pageadapter/FedilabPageAdapter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/fedilab/android/ui/pageadapter/FedilabPageAdapter.java b/app/src/main/java/app/fedilab/android/ui/pageadapter/FedilabPageAdapter.java index 373b22e8..ae534cf8 100644 --- a/app/src/main/java/app/fedilab/android/ui/pageadapter/FedilabPageAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/pageadapter/FedilabPageAdapter.java @@ -113,7 +113,11 @@ public class FedilabPageAdapter extends FragmentStatePagerAdapter { int pinnedPosition = position - (BOTTOM_TIMELINE_COUNT - toRemove); //Real position has an offset. PinnedTimeline pinnedTimeline = pinned.pinnedTimelines.get(pinnedPosition); bundle.putSerializable(Helper.ARG_TIMELINE_TYPE, pinnedTimeline.type); - if (pinnedTimeline.type == Timeline.TimeLineEnum.LIST) { + if (pinnedTimeline.type == Timeline.TimeLineEnum.NOTIFICATION) { + return new FragmentNotificationContainer(); + } else if (pinnedTimeline.type == Timeline.TimeLineEnum.DIRECT) { + return new FragmentMastodonConversation(); + } else if (pinnedTimeline.type == Timeline.TimeLineEnum.LIST) { bundle.putString(Helper.ARG_LIST_ID, pinnedTimeline.mastodonList.id); } else if (pinnedTimeline.type == Timeline.TimeLineEnum.TAG) { bundle.putSerializable(Helper.ARG_TAG_TIMELINE, pinnedTimeline.tagTimeline);