diff options
author | 2012-09-13 14:56:56 +0900 | |
---|---|---|
committer | 2012-09-13 18:59:04 +0900 | |
commit | 3d54e1c1eccf58e184c065ebe78f0f467cd04606 (patch) | |
tree | 78b0710e1e446bcd2325c19028bba9c9f53d2200 /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | 9d1c73ffd88cd1bfef3de048b0b3a9a7dfbcfa70 (diff) | |
download | latinime-3d54e1c1eccf58e184c065ebe78f0f467cd04606.tar.gz latinime-3d54e1c1eccf58e184c065ebe78f0f467cd04606.tar.xz latinime-3d54e1c1eccf58e184c065ebe78f0f467cd04606.zip |
Simplify a call, and add comments (A2)
Since the function has to be modified heavily but does a lot
of non-trivial work, add a wealth of comments explaining what
it does and why so as to facilitate understanding the changes
to come.
Bug: 4967874
Change-Id: I6c21aea15f161d807035f279dfb7d1b98b3e9144
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java index efda623e5..2ba274de1 100644 --- a/java/src/com/android/inputmethod/latin/RichInputConnection.java +++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java @@ -204,8 +204,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, - mCommittedTextBeforeComposingText.length(), inputType); + return StringUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType); } public CharSequence getTextBeforeCursor(final int i, final int j) { |