From 4a2beaa147d8d60898f42ece6c6bd43ded9694ad Mon Sep 17 00:00:00 2001 From: Seyed Mostafa Hasani Date: Fri, 6 Sep 2024 01:42:22 +0330 Subject: [PATCH] chore(android): remove onBackPressed function in FullScreenPlayerView (#4049) Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> --- .../java/com/brentvatne/exoplayer/FullScreenPlayerView.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt b/android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt index 1b9b1ce3..e6bad1b0 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt +++ b/android/src/main/java/com/brentvatne/exoplayer/FullScreenPlayerView.kt @@ -82,10 +82,6 @@ class FullScreenPlayerView( ?.isVisible(WindowInsetsCompat.Type.statusBars()) == true } } - override fun onBackPressed() { - super.onBackPressed() - onBackPressedCallback.handleOnBackPressed() - } override fun onStart() { super.onStart() @@ -112,6 +108,7 @@ class FullScreenPlayerView( } parent?.requestLayout() parent = null + onBackPressedCallback.handleOnBackPressed() restoreSystemUI() }