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

Commit beac2422 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Add haptic feedback for caps lock"

parents af0f13d1 416ee19d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
    }

    public boolean isVibrateAndSoundFeedbackRequired() {
        return mKeyboardView == null || !mKeyboardView.isInSlidingKeyInput();
        return mKeyboardView != null && !mKeyboardView.isInSlidingKeyInput();
    }

    private int getPointerCount() {
+1 −0
Original line number Diff line number Diff line
@@ -1259,6 +1259,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
            break;
        case Keyboard.CODE_CAPSLOCK:
            switcher.toggleCapsLock();
            vibrate();
            break;
        case Keyboard.CODE_SHORTCUT:
            mSubtypeSwitcher.switchToShortcutIME();