v0.9.4: iOS home indicator is now only hidden if game is fullscreen

This commit is contained in:
Evan Debenham
2021-07-11 19:01:58 -04:00
parent a06b01aee6
commit 62e742dc53

View File

@@ -4,6 +4,7 @@ import com.badlogic.gdx.Files;
import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
import com.badlogic.gdx.graphics.glutils.HdpiMode;
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.services.news.News;
import com.shatteredpixel.shatteredpixeldungeon.services.news.NewsImpl;
@@ -43,7 +44,6 @@ public class IOSLauncher extends IOSApplication.Delegate {
Game.versionCode = 0;
}
if (UpdateImpl.supportsUpdates()) {
Updates.service = UpdateImpl.getUpdateService();
}
@@ -59,6 +59,8 @@ public class IOSLauncher extends IOSApplication.Delegate {
config.depthFormat = GLKViewDrawableDepthFormat.None;
config.hdpiMode = HdpiMode.Pixels;
config.hideHomeIndicator = SPDSettings.fullscreen();
CGRect statusBarFrame = UIApplication.getSharedApplication().getStatusBarFrame();
double statusBarHeight = Math.min(statusBarFrame.getWidth(), statusBarFrame.getHeight());