From d9688c77a95dc548c68d57ba2c6f30bb27fc69dc Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 4 Sep 2009 15:30:43 -0700 Subject: [PATCH] Adjust the size of bottom row of keys for email mode. Fix for 2099889 Also recreate the keyboards when locale changes. --- res/values/strings.xml | 11 +++++++++++ res/xml-de/kbd_qwerty.xml | 8 ++++++-- res/xml-fr/kbd_qwerty.xml | 8 ++++++-- res/xml/kbd_qwerty.xml | 14 +++++++++----- res/xml/popup_domains.xml | 12 ++++++++---- src/com/android/inputmethod/latin/LatinIME.java | 4 ++++ 6 files changed, 44 insertions(+), 13 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 2cd996c2e..c01630a78 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -191,4 +191,15 @@ Keyboard settings\n\nTouch \u0026 hold the \?123\ key. + + + ".com" + + ".net" + + ".org" + + ".gov" + + ".edu" diff --git a/res/xml-de/kbd_qwerty.xml b/res/xml-de/kbd_qwerty.xml index 0c0d20e2f..56113e217 100755 --- a/res/xml-de/kbd_qwerty.xml +++ b/res/xml-de/kbd_qwerty.xml @@ -116,7 +116,8 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="_" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - @@ -135,8 +136,11 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="_" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - + diff --git a/res/xml-fr/kbd_qwerty.xml b/res/xml-fr/kbd_qwerty.xml index 1e72d22a2..d47042ea7 100644 --- a/res/xml-fr/kbd_qwerty.xml +++ b/res/xml-fr/kbd_qwerty.xml @@ -118,7 +118,8 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - @@ -137,8 +138,11 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - + diff --git a/res/xml/kbd_qwerty.xml b/res/xml/kbd_qwerty.xml index 41625f2ab..2fa6c90e1 100755 --- a/res/xml/kbd_qwerty.xml +++ b/res/xml/kbd_qwerty.xml @@ -127,7 +127,8 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="_" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - @@ -146,13 +147,16 @@ android:popupKeyboard="@xml/kbd_popup_template" android:popupCharacters="_" android:keyWidth="20%p" android:keyEdgeFlags="left"/> - - + + + android:keyWidth="15%p" android:isRepeatable="true"/> + android:keyWidth="15%p"/> diff --git a/res/xml/popup_domains.xml b/res/xml/popup_domains.xml index 5c86386d5..b733fe24f 100644 --- a/res/xml/popup_domains.xml +++ b/res/xml/popup_domains.xml @@ -26,9 +26,13 @@ > - - - - + + + + diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java index 49ae93e48..965656db2 100644 --- a/src/com/android/inputmethod/latin/LatinIME.java +++ b/src/com/android/inputmethod/latin/LatinIME.java @@ -209,6 +209,10 @@ public class LatinIME extends InputMethodService public void onConfigurationChanged(Configuration conf) { if (!TextUtils.equals(conf.locale.toString(), mLocale)) { initSuggest(conf.locale.toString()); + if (mKeyboardSwitcher == null) { + mKeyboardSwitcher = new KeyboardSwitcher(this); + } + mKeyboardSwitcher.makeKeyboards(); } // If orientation changed while predicting, commit the change if (conf.orientation != mOrientation) {