mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +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")
|
@SuppressLint("SourceLockedOrientationActivity")
|
||||||
fun unsetFullscreen() {
|
fun unsetFullscreen() {
|
||||||
|
if (activity == null || _binding == null) return
|
||||||
|
|
||||||
viewModel.isFullscreen.value = false
|
viewModel.isFullscreen.value = false
|
||||||
|
|
||||||
if (!PlayerHelper.autoFullscreenEnabled && activity != null) {
|
if (!PlayerHelper.autoFullscreenEnabled) {
|
||||||
mainActivity.requestedOrientation = mainActivity.screenOrientationPref
|
mainActivity.requestedOrientation = mainActivity.screenOrientationPref
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user