summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-06-27 22:32:15 +0800
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 23:42:55 +0200
commitd4f923812316e97841fae197189c38ccde30203f (patch)
tree9b87e93f8d37a51a0bacabbc7ce9dc000cee2b97
parent2f8d97cb1442afe92843fad216b080cc440f7116 (diff)
downloadandroid_packages_inputmethods_LatinIME-d4f923812316e97841fae197189c38ccde30203f.tar.gz
android_packages_inputmethods_LatinIME-d4f923812316e97841fae197189c38ccde30203f.tar.bz2
android_packages_inputmethods_LatinIME-d4f923812316e97841fae197189c38ccde30203f.zip
Remove extend touchable region for AOSP keyboard
Remove EXTENDED_TOUCHABLE_REGION_HEIGHT from LatinIME#onComputeInsets to prevent keyboard touch region covered navigation bar when in split-window mode with display density < 240 case. Fix: 134893742 Test: manual as below steps: 1) Set window density as 240 with "adb shell wm density 240" 2) Launch a app (i.e. Messages) from recents activity, set as split-screen mode. 3) Tap Search bar to show IME keyboard. 4) Press home / back / recents key if it works, expect it works. Change-Id: I596b7276041fecc50d2bc095c7e51664f632368d
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 4b6ab7e27..31307bad1 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -118,7 +118,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
static final String TAG = LatinIME.class.getSimpleName();
private static final boolean TRACE = false;
- private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100;
private static final int PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;
private static final int PENDING_IMS_CALLBACK_DURATION_MILLIS = 800;
static final long DELAY_WAIT_FOR_DICTIONARY_LOAD_MILLIS = TimeUnit.SECONDS.toMillis(2);
@@ -1212,9 +1211,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final int touchLeft = 0;
final int touchTop = mKeyboardSwitcher.isShowingMoreKeysPanel() ? 0 : visibleTopY;
final int touchRight = visibleKeyboardView.getWidth();
- final int touchBottom = inputHeight
- // Extend touchable region below the keyboard.
- + EXTENDED_TOUCHABLE_REGION_HEIGHT;
+ final int touchBottom = inputHeight;
outInsets.touchableInsets = InputMethodService.Insets.TOUCHABLE_INSETS_REGION;
outInsets.touchableRegion.set(touchLeft, touchTop, touchRight, touchBottom);
}