Skip to content

Commit

Permalink
Merge pull request #6171 from Bnyro/master
Browse files Browse the repository at this point in the history
fix: crash when entering audio mode via pip
  • Loading branch information
Bnyro committed Jun 21, 2024
2 parents 906be87 + d292f71 commit 007dfba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,11 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {

@SuppressLint("SourceLockedOrientationActivity")
fun unsetFullscreen() {
if (activity == null || _binding == null) return

viewModel.isFullscreen.value = false

if (!PlayerHelper.autoFullscreenEnabled && activity != null) {
if (!PlayerHelper.autoFullscreenEnabled) {
mainActivity.requestedOrientation = mainActivity.screenOrientationPref
}

Expand Down

0 comments on commit 007dfba

Please sign in to comment.