mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Merge pull request #6936 from Bnyro/master
fix: play local video version dialog hidden if autofullscreen enabled
This commit is contained in:
commit
a2e25899ab
@ -437,7 +437,11 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (localDownloadVersion != null && createNewSession) {
|
if (localDownloadVersion != null && createNewSession) {
|
||||||
childFragmentManager.setFragmentResultListener(
|
// the dialog must also be visible when in fullscreen, thus we need to use the activity's
|
||||||
|
// fragment manager and not the one from [PlayerFragment]
|
||||||
|
val fragmentManager = requireActivity().supportFragmentManager
|
||||||
|
|
||||||
|
fragmentManager.setFragmentResultListener(
|
||||||
PlayOfflineDialog.PLAY_OFFLINE_DIALOG_REQUEST_KEY, viewLifecycleOwner
|
PlayOfflineDialog.PLAY_OFFLINE_DIALOG_REQUEST_KEY, viewLifecycleOwner
|
||||||
) { _, bundle ->
|
) { _, bundle ->
|
||||||
if (bundle.getBoolean(IntentData.isPlayingOffline)) {
|
if (bundle.getBoolean(IntentData.isPlayingOffline)) {
|
||||||
@ -459,7 +463,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
IntentData.videoTitle to localDownloadVersion.download.title,
|
IntentData.videoTitle to localDownloadVersion.download.title,
|
||||||
IntentData.downloadInfo to downloadInfo
|
IntentData.downloadInfo to downloadInfo
|
||||||
)
|
)
|
||||||
}.show(childFragmentManager, null)
|
}.show(fragmentManager, null)
|
||||||
} else {
|
} else {
|
||||||
attachToPlayerService(playerData, createNewSession)
|
attachToPlayerService(playerData, createNewSession)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user