summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOreste Salerno <oreste.salerno@tomtom.com>2020-12-10 18:10:40 +0100
committerOreste Salerno <oreste.salerno@tomtom.com>2021-01-08 18:01:56 +0100
commit1e496855889d8a7ab71fb14f8801e9e108caa7e9 (patch)
tree8a29cfa6a6a8ef0ba70e0d6da1a59445a0db6511
parent746310a307f7e98cbd6e771489ef33db91373631 (diff)
downloadLatinIME-1e496855889d8a7ab71fb14f8801e9e108caa7e9.tar.gz
Fix behaviour of the close keyboard buttonandroid-s-preview-1
Starting from Android 11, the close keyboard button does not dismiss the keyboard anymore. Replace hideWindow() calls with requestHideSelf(). Change-Id: I7257ff577c4f57b534894df3a2d308c48787284c
-rw-r--r--src/com/android/inputmethod/latin/CarLatinIME.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/inputmethod/latin/CarLatinIME.java b/src/com/android/inputmethod/latin/CarLatinIME.java
index a8d24c4..b3f8135 100644
--- a/src/com/android/inputmethod/latin/CarLatinIME.java
+++ b/src/com/android/inputmethod/latin/CarLatinIME.java
@@ -296,7 +296,7 @@ public class CarLatinIME extends InputMethodService {
//loadKeyboard(ALPHA_LAYOUT_XML);
break;
case KEYCODE_CLOSE_KEYBOARD:
- hideWindow();
+ requestHideSelf(0);
break;
case KEYCODE_CYCLE_CHAR:
CharSequence text = inputConnection.getTextBeforeCursor(1, 0);
@@ -387,7 +387,7 @@ public class CarLatinIME extends InputMethodService {
@Override
public void stopInput() {
- hideWindow();
+ requestHideSelf(0);
}
};
@@ -437,7 +437,7 @@ public class CarLatinIME extends InputMethodService {
@Override
public void stopInput() {
- hideWindow();
+ requestHideSelf(0);
}
};