Merge "Remove extend touchable region for AOSP keyboard" am: ff1db79a18 am: b1dec95c37

am: 61722df601

Change-Id: Id85f0a065268605297ed4e25c84d74745f533d36
This commit is contained in:
lumark 2019-07-05 08:57:33 -07:00 committed by android-build-merger
commit 075f86ba3b

View file

@ -118,7 +118,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
static final String TAG = LatinIME.class.getSimpleName(); static final String TAG = LatinIME.class.getSimpleName();
private static final boolean TRACE = false; 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 PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;
private static final int PENDING_IMS_CALLBACK_DURATION_MILLIS = 800; private static final int PENDING_IMS_CALLBACK_DURATION_MILLIS = 800;
static final long DELAY_WAIT_FOR_DICTIONARY_LOAD_MILLIS = TimeUnit.SECONDS.toMillis(2); 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 touchLeft = 0;
final int touchTop = mKeyboardSwitcher.isShowingMoreKeysPanel() ? 0 : visibleTopY; final int touchTop = mKeyboardSwitcher.isShowingMoreKeysPanel() ? 0 : visibleTopY;
final int touchRight = visibleKeyboardView.getWidth(); final int touchRight = visibleKeyboardView.getWidth();
final int touchBottom = inputHeight final int touchBottom = inputHeight;
// Extend touchable region below the keyboard.
+ EXTENDED_TOUCHABLE_REGION_HEIGHT;
outInsets.touchableInsets = InputMethodService.Insets.TOUCHABLE_INSETS_REGION; outInsets.touchableInsets = InputMethodService.Insets.TOUCHABLE_INSETS_REGION;
outInsets.touchableRegion.set(touchLeft, touchTop, touchRight, touchBottom); outInsets.touchableRegion.set(touchLeft, touchTop, touchRight, touchBottom);
} }