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

Commit d0f3f907 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Narrower the language switch threshold to key width x 1.25

Change-Id: I4ea9553bce34bc3783f03d1615c34b6abb153077
parent 19576c33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -131,8 +131,8 @@ public class LatinKeyboard extends Keyboard {
        mSpaceAutoCorrectionIndicator = res.getDrawable(R.drawable.sym_keyboard_space_led);
        mButtonArrowLeftIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_left);
        mButtonArrowRightIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_right);
        // The threshold is "key width" x 1.5
        mSpacebarLanguageSwitchThreshold = (getMostCommonKeyWidth() * 3) / 2;
        // The threshold is "key width" x 1.25
        mSpacebarLanguageSwitchThreshold = (getMostCommonKeyWidth() * 5) / 4;
    }

    public void setSpacebarTextFadeFactor(float fadeFactor, LatinKeyboardView view) {