diff --git a/android/src/org/ppsspp/ppsspp/NativeActivity.java b/android/src/org/ppsspp/ppsspp/NativeActivity.java index 55c5d9b192..5676afee23 100644 --- a/android/src/org/ppsspp/ppsspp/NativeActivity.java +++ b/android/src/org/ppsspp/ppsspp/NativeActivity.java @@ -838,8 +838,10 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C @Override public void onAttachedToWindow() { + Log.i(TAG, "onAttachedToWindow"); + super.onAttachedToWindow(); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { - Log.i(TAG, "onAttachedToWindow"); DisplayCutout cutout = getWindow().getDecorView().getRootWindowInsets().getDisplayCutout(); if (cutout != null) { safeInsetLeft = cutout.getSafeInsetLeft(); @@ -855,6 +857,10 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C safeInsetBottom = 0; } } + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { + setupSystemUiCallback(); + } } @Override