From 9271b770e81350e232c351f76f9f7a2ec23dff5f Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 22 Feb 2012 00:05:19 -0800 Subject: Activate the code to cancel a manual pick (A5) This finally makes active the behavior described in Bug: 5968922 Change-Id: I363ed23270c3dea75411ea806011225097b5d07c --- java/src/com/android/inputmethod/latin/LastComposedWord.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java') diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java index d32b22d4f..cc1221bcb 100644 --- a/java/src/com/android/inputmethod/latin/LastComposedWord.java +++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java @@ -73,8 +73,7 @@ public class LastComposedWord { } public boolean canCancelAutoCorrect() { - return mActive && !TextUtils.isEmpty(mCommittedWord) - && !TextUtils.equals(mTypedWord, mCommittedWord); + return mActive && !TextUtils.isEmpty(mCommittedWord); } public boolean didCommitTypedWord() { -- cgit v1.2.3-83-g751a