onBackPressed function not working under IMMERSIVE STICKY mode
问题 I'm using Immersive Mode for an activity with videoView inside. My goal is when touch on screen, the media controller and the system control bar show or disappear together. Everything works fine now. The problem is I can't leave activity properly. When I press the back button once, the system bar just hide again and nothing happens. I have to press twice to exit the activity. I don't know why. Here's my code. I use an FullScreenActivity() activity to define IMMERSIVE MODE: @TargetApi(Build