v2.3.1: disabled libGDX immersive mode, interferes with game's settings
This commit is contained in:
+3
-2
@@ -111,8 +111,6 @@ public class AndroidLauncher extends AndroidApplication {
|
|||||||
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT );
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO libGDX offers its own immersive mode functionality, do we want to use it?
|
|
||||||
|
|
||||||
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
|
||||||
config.depth = 0;
|
config.depth = 0;
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
|
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
|
||||||
@@ -122,6 +120,9 @@ public class AndroidLauncher extends AndroidApplication {
|
|||||||
config.b = 5;
|
config.b = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//we manage this ourselves
|
||||||
|
config.useImmersiveMode = false;
|
||||||
|
|
||||||
config.useCompass = false;
|
config.useCompass = false;
|
||||||
config.useAccelerometer = false;
|
config.useAccelerometer = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user