From adaaf9ffb8f8ee0fa568d232ac140b74b0be4e38 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Tue, 27 Aug 2013 13:01:20 +0900 Subject: [PATCH] Rename theme file names Bug: 10415342 Change-Id: I692b157953f77c610482b494cbaeed4430bcb629 --- java/res/drawable/btn_keyboard_key.xml | 37 ----------- ...ingerbread.xml => btn_keyboard_key_gb.xml} | 0 ...opup.xml => btn_keyboard_key_popup_gb.xml} | 0 ...n_suggestion.xml => btn_suggestion_gb.xml} | 0 ...dback.xml => keyboard_key_feedback_gb.xml} | 0 .../{key_preview.xml => key_preview_gb.xml} | 2 +- .../touch-position-correction.xml | 4 +- java/res/values/colors.xml | 2 +- ...-icons-white.xml => keyboard-icons-gb.xml} | 0 java/res/values/keyboard-icons-ics.xml | 2 +- java/res/values/styles.xml | 66 +++++++++---------- .../{themes-gingerbread.xml => themes-gb.xml} | 12 ++-- java/res/values/themes-ics.xml | 20 +++--- java/res/values/touch-position-correction.xml | 4 +- .../keyboard/KeyboardSwitcher.java | 4 +- 15 files changed, 56 insertions(+), 97 deletions(-) delete mode 100644 java/res/drawable/btn_keyboard_key.xml rename java/res/drawable/{btn_keyboard_key_gingerbread.xml => btn_keyboard_key_gb.xml} (100%) rename java/res/drawable/{btn_keyboard_key_popup.xml => btn_keyboard_key_popup_gb.xml} (100%) rename java/res/drawable/{btn_suggestion.xml => btn_suggestion_gb.xml} (100%) rename java/res/drawable/{keyboard_key_feedback.xml => keyboard_key_feedback_gb.xml} (100%) rename java/res/layout/{key_preview.xml => key_preview_gb.xml} (93%) rename java/res/values/{keyboard-icons-white.xml => keyboard-icons-gb.xml} (100%) rename java/res/values/{themes-gingerbread.xml => themes-gb.xml} (81%) diff --git a/java/res/drawable/btn_keyboard_key.xml b/java/res/drawable/btn_keyboard_key.xml deleted file mode 100644 index 112ac2636..000000000 --- a/java/res/drawable/btn_keyboard_key.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/java/res/drawable/btn_keyboard_key_gingerbread.xml b/java/res/drawable/btn_keyboard_key_gb.xml similarity index 100% rename from java/res/drawable/btn_keyboard_key_gingerbread.xml rename to java/res/drawable/btn_keyboard_key_gb.xml diff --git a/java/res/drawable/btn_keyboard_key_popup.xml b/java/res/drawable/btn_keyboard_key_popup_gb.xml similarity index 100% rename from java/res/drawable/btn_keyboard_key_popup.xml rename to java/res/drawable/btn_keyboard_key_popup_gb.xml diff --git a/java/res/drawable/btn_suggestion.xml b/java/res/drawable/btn_suggestion_gb.xml similarity index 100% rename from java/res/drawable/btn_suggestion.xml rename to java/res/drawable/btn_suggestion_gb.xml diff --git a/java/res/drawable/keyboard_key_feedback.xml b/java/res/drawable/keyboard_key_feedback_gb.xml similarity index 100% rename from java/res/drawable/keyboard_key_feedback.xml rename to java/res/drawable/keyboard_key_feedback_gb.xml diff --git a/java/res/layout/key_preview.xml b/java/res/layout/key_preview_gb.xml similarity index 93% rename from java/res/layout/key_preview.xml rename to java/res/layout/key_preview_gb.xml index 2fcd0c4dd..2f2a321a3 100644 --- a/java/res/layout/key_preview.xml +++ b/java/res/layout/key_preview_gb.xml @@ -21,7 +21,7 @@ diff --git a/java/res/values-sw600dp/touch-position-correction.xml b/java/res/values-sw600dp/touch-position-correction.xml index f77d3ae83..df07c1295 100644 --- a/java/res/values-sw600dp/touch-position-correction.xml +++ b/java/res/values-sw600dp/touch-position-correction.xml @@ -37,7 +37,7 @@ - - - diff --git a/java/res/values/touch-position-correction.xml b/java/res/values/touch-position-correction.xml index 7df86f467..9df517b32 100644 --- a/java/res/values/touch-position-correction.xml +++ b/java/res/values/touch-position-correction.xml @@ -37,7 +37,7 @@ @@ -57,7 +57,7 @@ diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index ff2692d81..098c8b3df 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -58,8 +58,8 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions { } private static final KeyboardTheme[] KEYBOARD_THEMES = { - new KeyboardTheme(5, R.style.KeyboardTheme_IceCreamSandwich), - new KeyboardTheme(8, R.style.KeyboardTheme_Gingerbread), + new KeyboardTheme(0, R.style.KeyboardTheme_ICS), + new KeyboardTheme(1, R.style.KeyboardTheme_GB), }; private SubtypeSwitcher mSubtypeSwitcher;