aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/RichInputConnection.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-10-07 23:45:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-07 23:45:52 -0700
commit620017028cd1ef7159c16343720e7062b09dc3ba (patch)
treefc9971027b08fae9ce6d6d77028e2b09e36be902 /java/src/com/android/inputmethod/latin/RichInputConnection.java
parent551cc99e44510457f8a15dff7252a5fedd2d4a39 (diff)
parent36c56caee3049737a55e2421bf9e3727c4936f24 (diff)
downloadlatinime-620017028cd1ef7159c16343720e7062b09dc3ba.tar.gz
latinime-620017028cd1ef7159c16343720e7062b09dc3ba.tar.xz
latinime-620017028cd1ef7159c16343720e7062b09dc3ba.zip
am 36c56cae: Merge "Make the sentence separator a resource."
* commit '36c56caee3049737a55e2421bf9e3727c4936f24': Make the sentence separator a resource.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputConnection.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java
index 8580a6e54..e43cab5ca 100644
--- a/java/src/com/android/inputmethod/latin/RichInputConnection.java
+++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -245,11 +245,11 @@ public final class RichInputConnection {
* American English, it's just the most common set of rules for English).
*
* @param inputType a mask of the caps modes to test for.
- * @param locale what language should be considered.
+ * @param settingsValues the values of the settings to use for locale and separators.
* @param hasSpaceBefore if we should consider there should be a space after the string.
* @return the caps modes that should be on as a set of bits
*/
- public int getCursorCapsMode(final int inputType, final Locale locale,
+ public int getCursorCapsMode(final int inputType, final SettingsValues settingsValues,
final boolean hasSpaceBefore) {
mIC = mParent.getCurrentInputConnection();
if (null == mIC) return Constants.TextUtils.CAP_MODE_OFF;
@@ -277,8 +277,8 @@ public final class RichInputConnection {
}
// This never calls InputConnection#getCapsMode - in fact, it's a static method that
// never blocks or initiates IPC.
- return CapsModeUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType, locale,
- hasSpaceBefore);
+ return CapsModeUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType,
+ settingsValues, hasSpaceBefore);
}
public int getCodePointBeforeCursor() {