aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-12-03 11:46:25 -0800
committerKurt Partridge <kep@google.com>2012-12-03 16:39:58 -0800
commitb10ec5319b1ce5d0e61af73840aabc00707a5e4c (patch)
treeb1db8e25b0e6e457470f4cb0774cf4d94fb0f86b /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
parentaa5a3e84ad330f55edda3087a9498c5ee16b9cba (diff)
downloadlatinime-b10ec5319b1ce5d0e61af73840aabc00707a5e4c.tar.gz
latinime-b10ec5319b1ce5d0e61af73840aabc00707a5e4c.tar.xz
latinime-b10ec5319b1ce5d0e61af73840aabc00707a5e4c.zip
Fix crashes related to setSpan(-1 ... -1) errors
Fixes b/7652661 In some circumstnaces, when hiding the window, the logger tries to capture the TextView contents and restore the cursor position based on the values stored in LatinIME. However, the IME may not know the cursor position. This fix does two things 1) doesn't try to reposition the cursor if the TextView contents are not to be captured, and 2) if the cursor position is unknown (i.e., == -1), doesn't try to move it back. Change-Id: I3976aaccf58c18f892c3a8530218ae52bcac9989
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
0 files changed, 0 insertions, 0 deletions