v0.9.4: fixed iOS text input errors

This commit is contained in:
Evan Debenham
2021-07-08 17:28:18 -04:00
parent 603f91d10f
commit 285dd374b3
3 changed files with 16 additions and 4 deletions

View File

@@ -33,8 +33,9 @@ public class IOSPlatformSupport extends PlatformSupport {
}
if (!SPDSettings.fullscreen()) {
int insetChange = Gdx.graphics.getSafeInsetBottom() - Game.bottomInset;
Game.bottomInset = Gdx.graphics.getSafeInsetBottom();
Game.height -= Game.bottomInset;
Game.height -= insetChange;
Game.dispHeight = Game.height;
} else {
Game.height += Game.bottomInset;
@@ -46,8 +47,11 @@ public class IOSPlatformSupport extends PlatformSupport {
@Override
public void updateSystemUI() {
int prevInset = Game.bottomInset;
updateDisplaySize();
ShatteredPixelDungeon.seamlessResetScene();
if (prevInset != Game.bottomInset) {
ShatteredPixelDungeon.seamlessResetScene();
}
}
@Override