aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-08-27 12:03:16 +0900
committerTadashi G. Takaoka <takaoka@google.com>2013-08-27 12:47:26 +0900
commit1f4612fc5434e5b223d6f6c1ef77fb5fae0d32ee (patch)
treeea28849a82f9172d432ad6d95b930c606562d235 /java/src/com/android/inputmethod
parente1433fb4f2165443a0fc4c7145ab2bdc71acac7a (diff)
downloadlatinime-1f4612fc5434e5b223d6f6c1ef77fb5fae0d32ee.tar.gz
latinime-1f4612fc5434e5b223d6f6c1ef77fb5fae0d32ee.tar.xz
latinime-1f4612fc5434e5b223d6f6c1ef77fb5fae0d32ee.zip
Remove obsolete theme resources
Bug: 10415342 Change-Id: I9073c54b037e0f7973710a9e24ca5044f8db6db0
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r--java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
index 4313467cb..ff2692d81 100644
--- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
+++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
@@ -58,12 +58,8 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
}
private static final KeyboardTheme[] KEYBOARD_THEMES = {
- new KeyboardTheme(0, R.style.KeyboardTheme),
- new KeyboardTheme(1, R.style.KeyboardTheme_HighContrast),
- new KeyboardTheme(6, R.style.KeyboardTheme_Stone),
- new KeyboardTheme(7, R.style.KeyboardTheme_Stone_Bold),
- new KeyboardTheme(8, R.style.KeyboardTheme_Gingerbread),
new KeyboardTheme(5, R.style.KeyboardTheme_IceCreamSandwich),
+ new KeyboardTheme(8, R.style.KeyboardTheme_Gingerbread),
};
private SubtypeSwitcher mSubtypeSwitcher;
@@ -121,8 +117,9 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
} catch (NumberFormatException e) {
// Format error, keyboard theme is default to 0.
}
- Log.w(TAG, "Illegal keyboard theme in preference: " + themeIndex + ", default to 0");
- return KEYBOARD_THEMES[0];
+ Log.w(TAG, "Illegal keyboard theme in preference: " + themeIndex + ", default to "
+ + defaultIndex);
+ return KEYBOARD_THEMES[Integer.valueOf(defaultIndex)];
}
private void setContextThemeWrapper(final Context context, final KeyboardTheme keyboardTheme) {