diff options
author | 2010-11-10 23:03:19 -0800 | |
---|---|---|
committer | 2010-11-11 15:44:50 -0800 | |
commit | 8b00bc4f3281c229ee830f34a78c0ec287902c3f (patch) | |
tree | ef0289c909bbec8e926d367214793943e70254fb /java/src/com/android/inputmethod/latin/LatinKeyboard.java | |
parent | 4174655e23734563775acb9e1e644b31b9e72fa5 (diff) | |
download | latinime-8b00bc4f3281c229ee830f34a78c0ec287902c3f.tar.gz latinime-8b00bc4f3281c229ee830f34a78c0ec287902c3f.tar.xz latinime-8b00bc4f3281c229ee830f34a78c0ec287902c3f.zip |
Rename KeyboardSwitcher.setKeyboardMode to loadKeyboard
This change also eliminates KeyboardSwitcher.refreshKeyboardCache,
LatinIME.reloadKeyboards() and LanguageSwicther.getLocales().
Change-Id: I5fd4914660ea1c955ddfa0ca62b920f9bcd53e1b
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboard.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboard.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboard.java b/java/src/com/android/inputmethod/latin/LatinKeyboard.java index 15a8cf768..883069ae6 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboard.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboard.java @@ -113,11 +113,9 @@ public class LatinKeyboard extends BaseKeyboard { private static int sSpacebarVerticalCorrection; - public LatinKeyboard(Context context, int xmlLayoutResId) { - this(context, xmlLayoutResId, 0); - } - - public LatinKeyboard(Context context, int xmlLayoutResId, int mode) { + public LatinKeyboard(Context context, int xmlLayoutResId, int mode, int colorScheme, + boolean hasSettingsKey, boolean hasVoiceKey, int imeOptions) { + // TODO: to be used: colorScheme, hasSettingsKey, hasVoiceKey, imeOptions. super(context, xmlLayoutResId, mode); final Resources res = context.getResources(); mContext = context; @@ -291,7 +289,7 @@ public class LatinKeyboard extends BaseKeyboard { return mIsAlphaKeyboard; } - public void setColorOfSymbolIcons(boolean isAutoCompletion, boolean isBlack) { + public void setColorOfSymbolIcons(boolean isBlack) { mIsBlackSym = isBlack; final Resources res = mRes; if (isBlack) { @@ -306,9 +304,6 @@ public class LatinKeyboard extends BaseKeyboard { m123MicIcon = res.getDrawable(R.drawable.sym_keyboard_123_mic); } updateDynamicKeys(); - if (mSpaceKey != null) { - updateSpaceBarForLocale(isAutoCompletion, isBlack); - } } public void setVoiceMode(boolean hasVoiceButton, boolean hasVoice) { @@ -547,8 +542,7 @@ public class LatinKeyboard extends BaseKeyboard { return mSpaceDragLastDiff > 0 ? 1 : -1; } - public void setLanguageSwitcher(LanguageSwitcher switcher, boolean isAutoCompletion, - boolean isBlackSym) { + public void setLanguageSwitcher(LanguageSwitcher switcher) { mLanguageSwitcher = switcher; Locale locale = mLanguageSwitcher.getLocaleCount() > 0 ? mLanguageSwitcher.getInputLocale() @@ -561,7 +555,6 @@ public class LatinKeyboard extends BaseKeyboard { locale = null; } mLocale = locale; - setColorOfSymbolIcons(isAutoCompletion, isBlackSym); } boolean isCurrentlyInSpace() { |