diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-01 20:19:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 20:19:48 +0100 |
commit | 351a2fa41ccc35902fb47475312d95c88a663365 (patch) | |
tree | 3bdb31de05621fe251c24932e814c463e93a1b09 /platform/android | |
parent | 03862d43ad1fecfde33baf9e4283270b485cb4f5 (diff) | |
parent | 288ff2fd0820c67b52526b90ee2403cbafad6503 (diff) |
Merge pull request #26353 from ivanarh/android_hide_keyboard_crash
Android: Fixed a possible crash in keyboard hide method.
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/src/org/godotengine/godot/GodotIO.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/android/java/src/org/godotengine/godot/GodotIO.java b/platform/android/java/src/org/godotengine/godot/GodotIO.java index 8cee20e435..85bba8bb4c 100644 --- a/platform/android/java/src/org/godotengine/godot/GodotIO.java +++ b/platform/android/java/src/org/godotengine/godot/GodotIO.java @@ -516,14 +516,6 @@ public class GodotIO { public void hideKeyboard() { if (edit != null) edit.hideKeyboard(); - - InputMethodManager inputMgr = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE); - View v = activity.getCurrentFocus(); - if (v != null) { - inputMgr.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); - } else { - inputMgr.hideSoftInputFromWindow(new View(activity).getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); - } }; public void setScreenOrientation(int p_orientation) { |