add delay when hideSystemUI

This commit is contained in:
Tuan Luong 2020-07-13 14:50:09 +07:00
parent 0aa9a5901e
commit 4d35511fb9

View File

@ -79,7 +79,7 @@ public class ExoPlayerFullscreenVideoActivity extends AppCompatActivity implemen
public void onWindowFocusChanged(boolean hasFocus) { public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus); super.onWindowFocusChanged(hasFocus);
if (hasFocus) { if (hasFocus) {
hideSystemUI(); playerControlView.postDelayed(this::hideSystemUI, 200);
} }
} }