mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #6171 from Bnyro/master
fix: crash when entering audio mode via pip
This commit is contained in:
commit
007dfbaf82
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user