Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}

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
) { _, bundle ->
if (bundle.getBoolean(IntentData.isPlayingOffline)) {
Expand All @@ -459,7 +463,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
IntentData.videoTitle to localDownloadVersion.download.title,
IntentData.downloadInfo to downloadInfo
)
}.show(childFragmentManager, null)
}.show(fragmentManager, null)
} else {
attachToPlayerService(playerData, createNewSession)
}
Expand Down
Loading