mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
fix: crash if player view is not attached to lifecycle
This commit is contained in:
parent
b1a3a80ab3
commit
05852257ca
@ -260,7 +260,7 @@ abstract class CustomExoPlayerView(
|
||||
|
||||
supportFragmentManager.setFragmentResultListener(
|
||||
PlayingQueueSheet.PLAYING_QUEUE_REQUEST_KEY,
|
||||
findViewTreeLifecycleOwner()!!
|
||||
findViewTreeLifecycleOwner() ?: activity
|
||||
) { _, args ->
|
||||
(player as? MediaController)?.navigateVideo(
|
||||
args.getString(IntentData.videoId) ?: return@setFragmentResultListener
|
||||
|
Loading…
x
Reference in New Issue
Block a user