diff options
author | 2012-07-27 05:19:47 -0700 | |
---|---|---|
committer | 2012-07-27 05:19:48 -0700 | |
commit | 78ee77ad08ca408b4a3e5abfd9b08bc108427605 (patch) | |
tree | 0cbb736f4a3831b88e6b34afa8ad98da8dc808f7 /java/src | |
parent | d148c23a33905382d2fe2302821fe702aa1bdf74 (diff) | |
parent | 6fc72cae206b67e2dbcc4c6a853a355995d068be (diff) | |
download | latinime-78ee77ad08ca408b4a3e5abfd9b08bc108427605.tar.gz latinime-78ee77ad08ca408b4a3e5abfd9b08bc108427605.tar.xz latinime-78ee77ad08ca408b4a3e5abfd9b08bc108427605.zip |
Merge "Fix a bug with autocaps" into jb-mr1-dev
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 6b5de486c..1aac734ba 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -701,6 +701,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mLastSelectionStart = editorInfo.initialSelStart; mLastSelectionEnd = editorInfo.initialSelEnd; + // If we come here something in the text state is very likely to have changed. + // We should update the shift state regardless of whether we are restarting or not, because + // this is not perceived as a layout change that may be disruptive like we may have with + // switcher.loadKeyboard; in apps like Talk, we come here when the text is sent and the + // field gets emptied and we need to re-evaluate the shift state, but not the whole layout + // which would be disruptive. + mKeyboardSwitcher.updateShiftState(); mHandler.cancelUpdateSuggestionStrip(); mHandler.cancelDoubleSpacesTimer(); |