Skip to content

Commit

Permalink
fix #333
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jan 3, 2025
1 parent badf286 commit a3f11ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit a3f11ea

Please sign in to comment.