We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent badf286 commit a3f11eaCopy full SHA for a3f11ea
app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt
@@ -61,7 +61,7 @@ abstract class BaseFragment(val wantsPlayer: Boolean? = null) : Fragment() {
61
if (hidden) return
62
// see registerFragmentLifecycleCallbacks in MainActivity
63
if (wantsPlayer != null) {
64
- (requireActivity() as MainActivity).playerBottomSheet.visible = wantsPlayer
+ (activity as MainActivity?)?.playerBottomSheet?.visible = wantsPlayer
65
}
66
67
0 commit comments