From a5e9ffa35ce84633cedfca769787873f62bd4622 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Wed, 16 Feb 2011 11:55:23 +0900 Subject: Fix a bug in canAddToLastInputMethod() bug: 3456057 Change-Id: I977e984aafb36fdb83ac05d19fe0c7324a36d0c5 --- services/java/com/android/server/InputMethodManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/java/com/android/server/InputMethodManagerService.java') diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index ba0f31b92250..51e9b0077b59 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -1949,7 +1949,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub private boolean canAddToLastInputMethod(InputMethodSubtype subtype) { if (subtype == null) return true; - return subtype.containsExtraValueKey(SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME); + return !subtype.containsExtraValueKey(SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME); } private void saveCurrentInputMethodAndSubtypeToHistory() { -- cgit v1.2.3