aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-27 05:23:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-27 05:23:48 -0700
commit8256162ccbb23c3253ce687b3a0713d71f483d8c (patch)
tree8d9c6f5c4835e55a0a89d5d5a3ff30dc197d1908 /java/src
parent01238e3ed40c3db31dcd0e82d59441b635d08490 (diff)
parent78ee77ad08ca408b4a3e5abfd9b08bc108427605 (diff)
downloadlatinime-8256162ccbb23c3253ce687b3a0713d71f483d8c.tar.gz
latinime-8256162ccbb23c3253ce687b3a0713d71f483d8c.tar.xz
latinime-8256162ccbb23c3253ce687b3a0713d71f483d8c.zip
am 78ee77ad: Merge "Fix a bug with autocaps" into jb-mr1-dev
* commit '78ee77ad08ca408b4a3e5abfd9b08bc108427605': Fix a bug with autocaps
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java7
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();