From 8914555776a4d3dfd6afc4926a69169ca1c82a0e Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 17 Jan 2013 20:39:09 +0900 Subject: [PATCH] Reset forgotten members (D3) Only resetting mCapitalizedMode is enough to fix bug#8013488, but we may as well correctly reset both fields. Bug: 8013488 Change-Id: Icb0d7c5b1e93368e8eb7848aa9137b45d5d3531e --- java/src/com/android/inputmethod/latin/WordComposer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index b9ec4979d..01629fefa 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -360,8 +360,10 @@ public final class WordComposer { mDigitsCount = 0; mIsBatchMode = false; mTypedWord.setLength(0); + mCodePointSize = 0; mTrailingSingleQuotesCount = 0; mIsFirstCharCapitalized = false; + mCapitalizedMode = CAPS_MODE_OFF; refreshSize(); mAutoCorrection = null; mIsResumed = false;