Skip to content

Commit a3f11ea

Browse files
committed
fix #333
1 parent badf286 commit a3f11ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/akanework/gramophone/ui/fragments/BaseFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ abstract class BaseFragment(val wantsPlayer: Boolean? = null) : Fragment() {
6161
if (hidden) return
6262
// see registerFragmentLifecycleCallbacks in MainActivity
6363
if (wantsPlayer != null) {
64-
(requireActivity() as MainActivity).playerBottomSheet.visible = wantsPlayer
64+
(activity as MainActivity?)?.playerBottomSheet?.visible = wantsPlayer
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)