Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 786f9243 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android Git Automerger
Browse files

am 244eca38: Merge "Fix emoji keyboard insets"

* commit '244eca38':
  Fix emoji keyboard insets
parents c9e21e82 244eca38
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -314,15 +314,19 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
        mState.onCodeInput(code, mLatinIME.getCurrentAutoCapsState());
    }

    public boolean isShowingEmojiKeyboard() {
        return mEmojiKeyboardView.getVisibility() == View.VISIBLE;
    }

    public boolean isShowingMoreKeysPanel() {
        if (mEmojiKeyboardView.getVisibility() == View.VISIBLE) {
        if (isShowingEmojiKeyboard()) {
            return false;
        }
        return mKeyboardView.isShowingMoreKeysPanel();
    }

    public View getVisibleKeyboardView() {
        if (mEmojiKeyboardView.getVisibility() == View.VISIBLE) {
        if (isShowingEmojiKeyboard()) {
            return mEmojiKeyboardView;
        }
        return mKeyboardView;
+4 −1
Original line number Diff line number Diff line
@@ -1234,7 +1234,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        int visibleTopY = extraHeight;
        // Need to set touchable region only if input view is being shown
        if (visibleKeyboardView.isShown()) {
            if (mSuggestionStripView.getVisibility() == View.VISIBLE) {
            // Note that the height of Emoji layout is the same as the height of the main keyboard
            // and the suggestion strip
            if (mKeyboardSwitcher.isShowingEmojiKeyboard()
                    || mSuggestionStripView.getVisibility() == View.VISIBLE) {
                visibleTopY -= suggestionsHeight;
            }
            final int touchY = mKeyboardSwitcher.isShowingMoreKeysPanel() ? 0 : visibleTopY;