From 803ea5e37b9710d18a2534ea3ebde5554215de3a Mon Sep 17 00:00:00 2001 From: kaiyiz Date: Sat, 6 Sep 2014 13:38:52 +0800 Subject: LatinIME: Customize features for regional package. - Customize auto correction type of input method LatinIME. - Make the button in the lower right corner of the keyboard to be Enter button in MMS. Change-Id: I6eccf7b78258765b52ffa28c9e43fa771e6e0799 --- java/res/values/bools.xml | 1 + java/res/values/customize.xml | 38 ++++++++++++++++++++++ java/res/xml/key_styles_enter.xml | 9 +++++ java/res/xml/prefs_screen_correction.xml | 2 +- .../android/inputmethod/keyboard/KeyboardId.java | 2 ++ .../inputmethod/keyboard/KeyboardLayoutSet.java | 6 +++- .../inputmethod/latin/settings/SettingsValues.java | 2 +- 7 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 java/res/values/customize.xml diff --git a/java/res/values/bools.xml b/java/res/values/bools.xml index 10d217985..01dd0470e 100644 --- a/java/res/values/bools.xml +++ b/java/res/values/bools.xml @@ -21,4 +21,5 @@ false + false diff --git a/java/res/values/customize.xml b/java/res/values/customize.xml new file mode 100644 index 000000000..165e2fce2 --- /dev/null +++ b/java/res/values/customize.xml @@ -0,0 +1,38 @@ + + + + + + 1 + + diff --git a/java/res/xml/key_styles_enter.xml b/java/res/xml/key_styles_enter.xml index 564f465e9..f295c4d7b 100644 --- a/java/res/xml/key_styles_enter.xml +++ b/java/res/xml/key_styles_enter.xml @@ -254,6 +254,15 @@ latin:styleName="enterKeyStyle" latin:parentStyle="emojiKeyStyle" /> + + + + diff --git a/java/res/xml/prefs_screen_correction.xml b/java/res/xml/prefs_screen_correction.xml index dd5ba540c..43f3fb931 100644 --- a/java/res/xml/prefs_screen_correction.xml +++ b/java/res/xml/prefs_screen_correction.xml @@ -47,7 +47,7 @@ android:summary="@string/auto_correction_summary" android:entryValues="@array/auto_correction_threshold_mode_indexes" android:entries="@array/auto_correction_threshold_modes" - android:defaultValue="@string/auto_correction_threshold_mode_index_modest" + android:defaultValue="@string/auto_correction_threshold_mode_default_index" android:persistent="true" />