diff options
author | 2011-06-21 09:12:04 -0700 | |
---|---|---|
committer | 2011-06-21 09:12:04 -0700 | |
commit | 20ffde8d830eaf1996e84a886085bc69fdac9105 (patch) | |
tree | 215e889e87525250939cd276292859f9e1739aea /java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | |
parent | 3a1a391e98edc8736f58f359e1c226339a5e6169 (diff) | |
parent | 52fbad88756a46c4c8142034aa19a13deb1e387b (diff) | |
download | latinime-20ffde8d830eaf1996e84a886085bc69fdac9105.tar.gz latinime-20ffde8d830eaf1996e84a886085bc69fdac9105.tar.xz latinime-20ffde8d830eaf1996e84a886085bc69fdac9105.zip |
am 52fbad88: Support Turkish keyboard (DO NOT MERGE)
* commit '52fbad88756a46c4c8142034aa19a13deb1e387b':
Support Turkish keyboard (DO NOT MERGE)
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index 008d37202..fece78689 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java @@ -50,6 +50,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import java.util.WeakHashMap; /** @@ -705,10 +706,18 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx return mKeyDetector.isProximityCorrectionEnabled(); } + protected Locale getKeyboardLocale() { + if (mKeyboard instanceof LatinKeyboard) { + return ((LatinKeyboard)mKeyboard).getInputLocale(); + } else { + return getContext().getResources().getConfiguration().locale; + } + } + protected CharSequence adjustCase(CharSequence label) { if (mKeyboard.isShifted() && label != null && label.length() < 3 && Character.isLowerCase(label.charAt(0))) { - label = label.toString().toUpperCase(); + return label.toString().toUpperCase(getKeyboardLocale()); } return label; } |