Skip to content

Commit

Permalink
Fix: resolution changing when switching to pip
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz authored Aug 24, 2024
1 parent 32750db commit 445ce1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class PlayerActivity : AppCompatActivity() {
}

override fun onConfigurationChanged(newConfig: Configuration) {
viewModel.changeVideoAspect(playerPreferences.videoAspect.get())
if (!isInPictureInPictureMode) viewModel.changeVideoAspect(playerPreferences.videoAspect.get())
super.onConfigurationChanged(newConfig)
}

Expand Down

0 comments on commit 445ce1b

Please sign in to comment.