diff options
author | 2014-06-06 03:14:27 +0000 | |
---|---|---|
committer | 2014-06-06 03:14:27 +0000 | |
commit | 04ef4ce21cce83454dd10afd96cbc3be1f686a92 (patch) | |
tree | 74edb7919eda877dd2bcd645750d2cca9a61e57c /java/src/com/android/inputmethod/latin/RichInputConnection.java | |
parent | f91a47a2da7e986df19cf9dbadd95f7f2ac664aa (diff) | |
parent | 70ff0c212262309e381d00636bf66d231a2a9dfb (diff) | |
download | latinime-04ef4ce21cce83454dd10afd96cbc3be1f686a92.tar.gz latinime-04ef4ce21cce83454dd10afd96cbc3be1f686a92.tar.xz latinime-04ef4ce21cce83454dd10afd96cbc3be1f686a92.zip |
am 70ff0c21: Merge "Fix a bug on rotation with selection."
* commit '70ff0c212262309e381d00636bf66d231a2a9dfb':
Fix a bug on rotation with selection.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/RichInputConnection.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/RichInputConnection.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java index 9d72c64fc..96476b2ee 100644 --- a/java/src/com/android/inputmethod/latin/RichInputConnection.java +++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java @@ -891,4 +891,8 @@ public final class RichInputConnection { public boolean hasSelection() { return mExpectedSelEnd != mExpectedSelStart; } + + public boolean isCursorPositionKnown() { + return INVALID_CURSOR_POSITION != mExpectedSelStart; + } } |