diff --git a/app/src/visionglass/java/com/igalia/wolvic/PlatformActivity.java b/app/src/visionglass/java/com/igalia/wolvic/PlatformActivity.java index 562949591bf..8899cae5f24 100644 --- a/app/src/visionglass/java/com/igalia/wolvic/PlatformActivity.java +++ b/app/src/visionglass/java/com/igalia/wolvic/PlatformActivity.java @@ -331,7 +331,6 @@ protected void onResume() { mActivePresentation.mGLView.onResume(); queueRunnable(activityResumedRunnable); - setImmersiveSticky(); } @Override @@ -350,27 +349,6 @@ protected void onDestroy() { } } - void setImmersiveSticky() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { - getWindow().setDecorFitsSystemWindows(false); - WindowInsetsController controller = getWindow().getInsetsController(); - if (controller != null) { - controller.hide(WindowInsets.Type.statusBars() | WindowInsets.Type.navigationBars()); - controller.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE); - } - } else { - getWindow() - .getDecorView() - .setSystemUiVisibility( - View.SYSTEM_UI_FLAG_LAYOUT_STABLE - | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION - | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN - | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION - | View.SYSTEM_UI_FLAG_FULLSCREEN - | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); - } - } - boolean queueRunnable(@NonNull Runnable aRunnable) { if (mActivePresentation != null) { mActivePresentation.mGLView.queueEvent(aRunnable); @@ -645,9 +623,7 @@ public void onDrawFrame(GL10 gl) { @Keep @SuppressWarnings("unused") - private void setRenderMode(final int aMode) { - runOnUiThread(this::setImmersiveSticky); - } + private void setRenderMode(final int aMode) {} private native void activityCreated(Object aAssetManager); private native void updateViewport(int width, int height);