diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/proguard.flags | 9 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/java/proguard.flags b/java/proguard.flags index d65924f7c..c08a968bc 100644 --- a/java/proguard.flags +++ b/java/proguard.flags @@ -1,11 +1,16 @@ # Keep classes and methods that have the @UsedForTesting annotation -keep @com.android.inputmethod.annotations.UsedForTesting class * -keepclassmembers class * { -@com.android.inputmethod.annotations.UsedForTesting *; + @com.android.inputmethod.annotations.UsedForTesting *; } # Keep classes and methods that have the @ExternallyReferenced annotation -keep @com.android.inputmethod.annotations.ExternallyReferenced class * -keepclassmembers class * { -@com.android.inputmethod.annotations.ExternallyReferenced *; + @com.android.inputmethod.annotations.ExternallyReferenced *; +} + +# Keep native methods +-keepclassmembers class * { + native <methods>; } diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 824752fcb..0560cf528 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -777,6 +777,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // span, so we should reset our state unconditionally, even if restarting is true. mEnteredText = null; resetComposingState(true /* alsoResetLastComposedWord */); + if (isDifferentTextField) mHandler.postResumeSuggestions(); mDeleteCount = 0; mSpaceState = SPACE_STATE_NONE; mRecapitalizeStatus.deactivate(); |