Refresh Android UI when dismissing soft keyboard

This commit is contained in:
Joshua Granick
2017-11-20 15:31:15 -08:00
parent 6a1a2e39fe
commit 9d571ff298

View File

@@ -8,6 +8,7 @@ import lime.graphics.ImageBuffer;
import lime.math.Vector2;
import lime.system.Display;
import lime.system.DisplayMode;
import lime.system.JNI;
import lime.system.System;
import lime.ui.Window;
@@ -283,6 +284,17 @@ class NativeWindow {
NativeCFFI.lime_window_set_enable_text_events (handle, value);
#end
#if android
if (!value) {
var updateSystemUI = JNI.createStaticMethod ("org/haxe/lime/GameActivity", "updateSystemUI", "()V");
JNI.postUICallback (function () {
updateSystemUI ();
});
}
#end
}
return value;