@SuppressLint("InlinedApi")
    private void show() {
        Log.d(TAG, "show() called");
        // Show the system bar
        mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
        mVisible = true;

        // Schedule a runnable to display UI elements after a delay
        mHideHandler.removeCallbacks(mHidePart2Runnable);
        mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);
    }
Some older devices needs a small delay between UI widget updates
and a change of the status and navigation bar.
app/src/main/java/home/smart/fly/animations/ui/activity/FullscreenADActivity.java