mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
fix(android): system controls are not hidden when going back to app (#4675)
This commit is contained in:
+8
@@ -56,6 +56,14 @@ class FullscreenVideoFragment(private val videoView: VideoView) : Fragment() {
|
||||
return this.container
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
// System UI is re-enabled when user have exited app and go back
|
||||
// We need to hide it again
|
||||
hideSystemUI()
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user