diff options
author | 2014-01-27 10:01:17 +0000 | |
---|---|---|
committer | 2014-01-27 10:01:17 +0000 | |
commit | 6d1c8b2c3f78969866db7f718e7e8d2be240f674 (patch) | |
tree | 5ded1bf0989dc4586bb173ef7fa7a3c0fda7ec31 /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | b084da2ae6622488779ddb3a66081610bfe96a66 (diff) | |
parent | c7ef305bbc119b820fd619d3ed205198d4f98c3f (diff) | |
download | latinime-6d1c8b2c3f78969866db7f718e7e8d2be240f674.tar.gz latinime-6d1c8b2c3f78969866db7f718e7e8d2be240f674.tar.xz latinime-6d1c8b2c3f78969866db7f718e7e8d2be240f674.zip |
Merge "Try to figure out whether d.quotes open or close."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java index 325a0d981..0d0b7a160 100644 --- a/java/src/com/android/inputmethod/latin/RichInputConnection.java +++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java @@ -815,6 +815,17 @@ public final class RichInputConnection { } /** + * Looks at the text just before the cursor to find out if we are inside a double quote. + * + * As with #textBeforeCursorLooksLikeURL, this is dependent on how much text we have cached. + * However this won't be a concrete problem in most situations, as the cache is almost always + * long enough for this use. + */ + public boolean isInsideDoubleQuoteOrAfterDigit() { + return StringUtils.isInsideDoubleQuoteOrAfterDigit(mCommittedTextBeforeComposingText); + } + + /** * Try to get the text from the editor to expose lies the framework may have been * telling us. Concretely, when the device rotates, the frameworks tells us about where the * cursor used to be initially in the editor at the time it first received the focus; this |