From d0f3f907898290f4b4553c02b5d0bc7b7a3a6a75 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" <takaoka@google.com> Date: Fri, 22 Apr 2011 23:20:22 +0900 Subject: [PATCH] Narrower the language switch threshold to key width x 1.25 Change-Id: I4ea9553bce34bc3783f03d1615c34b6abb153077 --- java/src/com/android/inputmethod/keyboard/LatinKeyboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java index 86b7f7e82a..a1d0607bfa 100644 --- a/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java +++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboard.java @@ -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) { -- GitLab