From f527b8995531be7134bfcd05a22f0f764f0d673d Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Thu, 14 May 2015 21:04:07 +0300 Subject: [PATCH] Fixed screen top cropped in non-immersive mode --- project/java/MainActivity.java | 2 +- project/java/Video.java | 2 +- project/jni/application/ballfield/AndroidAppSettings.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index 2938b9001..db4d34597 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -1337,7 +1337,7 @@ abstract class DimSystemStatusBar // Immersive mode, I already hear curses when system bar reappears mid-game from the slightest swipe at the bottom of the screen view.setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | android.view.View.SYSTEM_UI_FLAG_FULLSCREEN); else - view.setSystemUiVisibility(android.view.View.STATUS_BAR_HIDDEN); + view.setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_LOW_PROFILE); } } private static class DimSystemStatusBarDummy extends DimSystemStatusBar diff --git a/project/java/Video.java b/project/java/Video.java index c51e18204..4df5835b0 100644 --- a/project/java/Video.java +++ b/project/java/Video.java @@ -625,7 +625,7 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer int ww = w - w % 2; int hh = h - h % 2; View topView = context.getWindow().peekDecorView(); - if (topView != null) + if (topView != null && Globals.ImmersiveMode) { ww = topView.getWidth() - topView.getWidth() % 2; hh = topView.getHeight() - topView.getHeight() % 2; diff --git a/project/jni/application/ballfield/AndroidAppSettings.cfg b/project/jni/application/ballfield/AndroidAppSettings.cfg index 0c902cb14..5bcdc0608 100644 --- a/project/jni/application/ballfield/AndroidAppSettings.cfg +++ b/project/jni/application/ballfield/AndroidAppSettings.cfg @@ -213,7 +213,7 @@ FirstStartMenuOptions='SettingsMenu.DummyMenu' # Specify architectures to compile, 'all' or 'y' to compile for all architectures. # Available architectures: armeabi armeabi-v7a armeabi-v7a-hard x86 mips -MultiABI='armeabi-v7a' +MultiABI='armeabi-v7a x86' # Minimum amount of RAM application requires, in Mb, SDL will print warning to user if it's lower AppMinimumRAM=0