From 38fe99f10eb9d0c9b67d34b5282616d1377e2c30 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 7 Sep 2019 12:04:28 -0400 Subject: [PATCH] Android cleanup --- android/src/io/anuke/mindustry/AndroidLauncher.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/android/src/io/anuke/mindustry/AndroidLauncher.java b/android/src/io/anuke/mindustry/AndroidLauncher.java index d7dd912ca8..76b43cf7bb 100644 --- a/android/src/io/anuke/mindustry/AndroidLauncher.java +++ b/android/src/io/anuke/mindustry/AndroidLauncher.java @@ -37,14 +37,10 @@ public class AndroidLauncher extends AndroidApplication{ @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); - AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); - config.useImmersiveMode = true; - config.depth = 0; if(doubleScaleTablets && isTablet(this.getContext())){ UnitScl.dp.addition = 0.5f; } - config.hideStatusBar = true; Net.setClientProvider(new ArcNetClient()); Net.setServerProvider(new ArcNetServer()); initialize(new ClientLauncher(){ @@ -145,7 +141,11 @@ public class AndroidLauncher extends AndroidApplication{ public boolean canDonate(){ return true; } - }, config); + }, new AndroidApplicationConfiguration(){{ + useImmersiveMode = true; + depth = 0; + hideStatusBar = true; + }}); checkFiles(getIntent()); }