diff --git a/java/res/values/config-common.xml b/java/res/values/config-common.xml index 1962c0d45..3fe4b947c 100644 --- a/java/res/values/config-common.xml +++ b/java/res/values/config-common.xml @@ -24,6 +24,9 @@ at input history to suggest a hopefully helpful suggestions for the next word? --> true + + 2 + 100 1100 diff --git a/java/res/values/keyboard-themes.xml b/java/res/values/keyboard-themes.xml deleted file mode 100644 index 0325f5be0..000000000 --- a/java/res/values/keyboard-themes.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - @string/keyboard_color_scheme_white - @string/keyboard_color_scheme_blue - - Quantum - - - - 2 - 0 - 3 - - diff --git a/java/res/xml/prefs.xml b/java/res/xml/prefs.xml index 61ebb6992..7d86dbd5d 100644 --- a/java/res/xml/prefs.xml +++ b/java/res/xml/prefs.xml @@ -158,11 +158,12 @@ android:persistent="true" android:defaultValue="false" /> + android:entries="@array/keyboard_theme_names" + android:defaultValue="@string/config_default_keyboard_theme_id" /> () { - @Override - public int compare(final KeyboardTheme lhs, final KeyboardTheme rhs) { - if (lhs.mMinApiVersion > rhs.mMinApiVersion) return -1; - if (lhs.mMinApiVersion < rhs.mMinApiVersion) return 1; - return 0; - } - }); - } public final int mThemeId; public final int mStyleId; - final int mMinApiVersion; // Note: The themeId should be aligned with "themeId" attribute of Keyboard style - // in values/themes-