v1.4.0: fixed TextInput interacting oddly with maximizing on desktop

This commit is contained in:
Evan Debenham
2022-08-08 18:03:12 -04:00
parent c74195edaf
commit 675a192503

View File

@@ -40,6 +40,7 @@ import com.watabou.glwrap.Blending;
import com.watabou.glwrap.Quad; import com.watabou.glwrap.Quad;
import com.watabou.glwrap.Texture; import com.watabou.glwrap.Texture;
import com.watabou.noosa.ui.Component; import com.watabou.noosa.ui.Component;
import com.watabou.utils.DeviceCompat;
import com.watabou.utils.FileUtils; import com.watabou.utils.FileUtils;
import com.watabou.utils.Point; import com.watabou.utils.Point;
@@ -184,7 +185,7 @@ public class TextInput extends Component {
skin.dispose(); skin.dispose();
Game.inputHandler.removeInputProcessor(stage); Game.inputHandler.removeInputProcessor(stage);
Gdx.input.setOnscreenKeyboardVisible(false); Gdx.input.setOnscreenKeyboardVisible(false);
Game.platform.updateSystemUI(); if (!DeviceCompat.isDesktop()) Game.platform.updateSystemUI();
} }
} }
} }