From 84fda7bade8b1f30a060a19f2d6b9ea0638fc490 Mon Sep 17 00:00:00 2001 From: Christophe Beyls Date: Fri, 10 May 2024 14:26:29 +0200 Subject: [PATCH] Re-enable options menu in NotificationsFragment (#4419) The menu doesn't show up anymore after merging #4026. I assume this was unintentional since the Fragment still implements `MenuProvider`. --- .../tusky/components/notifications/NotificationsFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt index bd03d9e0e..547495779 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsFragment.kt @@ -121,6 +121,8 @@ class NotificationsFragment : } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + requireActivity().addMenuProvider(this, viewLifecycleOwner, Lifecycle.State.RESUMED) + val statusDisplayOptions = StatusDisplayOptions( animateAvatars = preferences.getBoolean(PrefKeys.ANIMATE_GIF_AVATARS, false), mediaPreviewEnabled = accountManager.activeAccount!!.mediaPreviewEnabled,