Fix Android 10 resource sync and fullscreen; record Global ROM comparison

This commit is contained in:
shen
2026-09-30 19:35:52 -07:00
parent b8b0a84149
commit 1e4762ccf4
4 changed files with 84 additions and 2 deletions
@@ -214,6 +214,11 @@ public class MainActivity extends SDLActivity {
}
private void applyImmersiveMode() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
final WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES;
getWindow().setAttributes(attributes);
}
final View decor = getWindow().getDecorView();
decor.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |