Skip to content

Commit

Permalink
chore(android): remove onBackPressed function in FullScreenPlayerView (
Browse files Browse the repository at this point in the history
…#4049)

Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
  • Loading branch information
seyedmostafahasani and freeboub authored Sep 5, 2024
1 parent bee4123 commit 4a2beaa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ class FullScreenPlayerView(
?.isVisible(WindowInsetsCompat.Type.statusBars()) == true
}
}
override fun onBackPressed() {
super.onBackPressed()
onBackPressedCallback.handleOnBackPressed()
}

override fun onStart() {
super.onStart()
Expand All @@ -112,6 +108,7 @@ class FullScreenPlayerView(
}
parent?.requestLayout()
parent = null
onBackPressedCallback.handleOnBackPressed()
restoreSystemUI()
}

Expand Down

0 comments on commit 4a2beaa

Please sign in to comment.