From 60eb1e5b8c0cc8efa6abeb31cbec3b00a7ee3f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 14 Mar 2026 22:24:54 +0100 Subject: [PATCH] Support inset on older devices. Although, in the case of no camera cutout, the insets are a little large because the nav bar becomes the minimum for symmetry.. --- android/src/org/ppsspp/ppsspp/PpssppActivity.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/android/src/org/ppsspp/ppsspp/PpssppActivity.java b/android/src/org/ppsspp/ppsspp/PpssppActivity.java index 930a9fc182..feeab2d598 100644 --- a/android/src/org/ppsspp/ppsspp/PpssppActivity.java +++ b/android/src/org/ppsspp/ppsspp/PpssppActivity.java @@ -900,16 +900,12 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList private void setInsetsListener(SurfaceView surfaceView) { ViewCompat.setOnApplyWindowInsetsListener(surfaceView, (v, insets) -> { - if (Build.VERSION.SDK_INT >= 28) { - int orientation = getResources().getConfiguration().orientation; - updateInsets(insets, orientation); // replace your updateInsets() to support WindowInsetsCompat - } + updateInsets(insets); // replace your updateInsets() to support WindowInsetsCompat return insets; // or WindowInsetsCompat.CONSUMED if you want to stop propagation }); } - @RequiresApi(Build.VERSION_CODES.P) - private void updateInsets(WindowInsetsCompat insetCompat, int orientation) { + private void updateInsets(WindowInsetsCompat insetCompat) { if (insetCompat == null) { return; }