mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
try to use immersive mode on android 13 and above
This commit is contained in:
@@ -432,7 +432,8 @@ public class Main extends AndroidApplication {
|
|||||||
config.useCompass = false;
|
config.useCompass = false;
|
||||||
config.useGyroscope = false;
|
config.useGyroscope = false;
|
||||||
config.useRotationVectorSensor = false;
|
config.useRotationVectorSensor = false;
|
||||||
config.useImmersiveMode = false;
|
// try to use immersive mode on android 13 and above
|
||||||
|
config.useImmersiveMode = Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU;
|
||||||
config.nativeLoader = () -> ReLinker.loadLibrary(getContext(), "gdx");
|
config.nativeLoader = () -> ReLinker.loadLibrary(getContext(), "gdx");
|
||||||
|
|
||||||
if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
|
if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user