Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -131,8 +131,8 @@ public class LatinKeyboard extends Keyboard { ...@@ -131,8 +131,8 @@ public class LatinKeyboard extends Keyboard {
mSpaceAutoCorrectionIndicator = res.getDrawable(R.drawable.sym_keyboard_space_led); mSpaceAutoCorrectionIndicator = res.getDrawable(R.drawable.sym_keyboard_space_led);
mButtonArrowLeftIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_left); mButtonArrowLeftIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_left);
mButtonArrowRightIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_right); mButtonArrowRightIcon = res.getDrawable(R.drawable.sym_keyboard_language_arrows_right);
// The threshold is "key width" x 1.5 // The threshold is "key width" x 1.25
mSpacebarLanguageSwitchThreshold = (getMostCommonKeyWidth() * 3) / 2; mSpacebarLanguageSwitchThreshold = (getMostCommonKeyWidth() * 5) / 4;
} }
public void setSpacebarTextFadeFactor(float fadeFactor, LatinKeyboardView view) { public void setSpacebarTextFadeFactor(float fadeFactor, LatinKeyboardView view) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment