Skip to content
Snippets Groups Projects
Commit 9ee399d7 authored by Drahomír Karchňák's avatar Drahomír Karchňák
Browse files

#433 Fixed crashing sync dialog on IOS devices.

parent 679fe8dc
Branches
Tags
No related merge requests found
......@@ -184,7 +184,7 @@ public class TextFiledDialogComponent extends TablexiaDialogComponentAdapter {
timerSet = true;
}
private void repositionDialog(DialogPosition dialogPosition) {
private void repositionDialog(final DialogPosition dialogPosition) {
TablexiaComponentDialog dialog = getDialog();
Stage stage = getStage();
if(dialog == null || (stage == null)) return;
......@@ -194,7 +194,12 @@ public class TextFiledDialogComponent extends TablexiaDialogComponentAdapter {
TablexiaSettings.getViewportBottomY(stage) + TablexiaSettings.getViewportHeight(stage) * dialogPosition.getShift() - dialog.getOutterHeight() * dialogPosition.getShift()
);
Gdx.input.setOnscreenKeyboardVisible(dialogPosition.isShowKeyboard());
Gdx.app.postRunnable(new Runnable() {
@Override
public void run() {
Gdx.input.setOnscreenKeyboardVisible(dialogPosition.isShowKeyboard());
}
});
}
private enum DialogPosition {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment