From 41f7fb51b0966d76a70e8b927ab4f0f21b70107b Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 14 Jan 2011 14:02:46 +0900 Subject: [PATCH] Make input language selection settings work This change also tweaks the padding of candidate strip for phone. Change-Id: Iefe4dfeb7015e11d5b2d1566121f719d60b1377e --- java/res/values/dimens.xml | 2 +- java/res/xml/prefs.xml | 7 +----- .../android/inputmethod/latin/Settings.java | 25 ++++++++++++++++++- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/java/res/values/dimens.xml b/java/res/values/dimens.xml index 504e007e0..7f00cdba3 100644 --- a/java/res/values/dimens.xml +++ b/java/res/values/dimens.xml @@ -51,7 +51,7 @@ 63dip 0dip 0.3in - 0dip + 6dip 18dip 4dip - - - + android:summary="@string/language_selection_summary" /> = android.os.Build.VERSION_CODES.HONEYCOMB) { + action = "android.settings.INPUT_METHOD_AND_SUBTYPE_ENABLER"; + } else { + action = "com.android.inputmethod.latin.INPUT_LANGUAGE_SELECTION"; + } + startActivity(new Intent(action)); + return true; + } + return false; + } + private void updateSettingsKeySummary() { mSettingsKeyPreference.setSummary( getResources().getStringArray(R.array.settings_key_modes)