From a3f11ea14f79d2b232e3056def511bb98d5148fd Mon Sep 17 00:00:00 2001 From: nift4 Date: Fri, 3 Jan 2025 16:27:49 +0100 Subject: [PATCH] fix #333 --- .../org/akanework/gramophone/ui/fragments/BaseFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt b/app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt index 60df5cbec..dde695d0e 100644 --- a/app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt +++ b/app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt @@ -61,7 +61,7 @@ abstract class BaseFragment(val wantsPlayer: Boolean? = null) : Fragment() { if (hidden) return // see registerFragmentLifecycleCallbacks in MainActivity if (wantsPlayer != null) { - (requireActivity() as MainActivity).playerBottomSheet.visible = wantsPlayer + (activity as MainActivity?)?.playerBottomSheet?.visible = wantsPlayer } } } \ No newline at end of file