am 60e4997e: Merge "Use the correct theme on ICS"

* commit '60e4997eab0823f87f5fa59ac5c9a3221f5cc4d4':
  Use the correct theme on ICS
This commit is contained in:
Ken Wakasa 2011-09-16 01:18:12 -07:00 committed by Android Git Automerger
commit 9e9ce6bb93

View file

@ -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)