Skip to content
Snippets Groups Projects
Commit dc52a562 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Use the correct theme on ICS

bug: 5329939
Change-Id: Ia139813b83eefe53863cae9cbe46b8b3a940e0df
parent 70ae4efd
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha ...@@ -182,7 +182,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
private static int getKeyboardThemeIndex(Context context, SharedPreferences prefs) { private static int getKeyboardThemeIndex(Context context, SharedPreferences prefs) {
final String defaultThemeId = context.getString(R.string.config_default_keyboard_theme_id); final String defaultThemeId = context.getString(R.string.config_default_keyboard_theme_id);
final String themeId = prefs.getString(PREF_KEYBOARD_LAYOUT, defaultThemeId); final String themeId = Settings.ENABLE_EXPERIMENTAL_SETTINGS
? prefs.getString(PREF_KEYBOARD_LAYOUT, defaultThemeId) : defaultThemeId;
try { try {
final int themeIndex = Integer.valueOf(themeId); final int themeIndex = Integer.valueOf(themeId);
if (themeIndex >= 0 && themeIndex < KEYBOARD_THEMES.length) if (themeIndex >= 0 && themeIndex < KEYBOARD_THEMES.length)
......
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