aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputConnection.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-09-14 05:22:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-14 05:22:59 -0700
commitec1631199dad501868487156a637861645532ff5 (patch)
tree53f43ca036559a2374505f2553cf33485389c08d /java/src/com/android/inputmethod/latin/RichInputConnection.java
parent461eca8075ea8245fb63bc7c1599cd725b7478e5 (diff)
parent252da38fcd1a40b8c308d6754d644064032094f9 (diff)
downloadlatinime-ec1631199dad501868487156a637861645532ff5.tar.gz
latinime-ec1631199dad501868487156a637861645532ff5.tar.xz
latinime-ec1631199dad501868487156a637861645532ff5.zip
am 252da38f: Take locale into account for caps (A10)
* commit '252da38fcd1a40b8c308d6754d644064032094f9': Take locale into account for caps (A10)
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputConnection.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java
index 43b9ba7a9..b85f9dcd7 100644
--- a/java/src/com/android/inputmethod/latin/RichInputConnection.java
+++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -30,6 +30,7 @@ import com.android.inputmethod.keyboard.Keyboard;
import com.android.inputmethod.latin.define.ProductionFlag;
import com.android.inputmethod.research.ResearchLogger;
+import java.util.Locale;
import java.util.regex.Pattern;
/**
@@ -189,7 +190,7 @@ public class RichInputConnection {
}
}
- public int getCursorCapsMode(final int inputType) {
+ public int getCursorCapsMode(final int inputType, final Locale locale) {
mIC = mParent.getCurrentInputConnection();
if (null == mIC) return Constants.TextUtils.CAP_MODE_OFF;
if (!TextUtils.isEmpty(mComposingText)) return Constants.TextUtils.CAP_MODE_OFF;
@@ -204,7 +205,7 @@ public class RichInputConnection {
}
// This never calls InputConnection#getCapsMode - in fact, it's a static method that
// never blocks or initiates IPC.
- return StringUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType);
+ return StringUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType, locale);
}
public CharSequence getTextBeforeCursor(final int i, final int j) {