Refresh Android UI when dismissing soft keyboard
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user