From 12caec4dd59270787a5ddafdbf39290bc90929b3 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Wed, 3 Mar 2010 13:50:55 -0800 Subject: [PATCH] b/2449438 : ALT key sometimes doesn't work in the symbols keyboard This change seems to fix it. Will continue to monitor if it happens. From tracing the code, it seemed to think that the current keyboard was not a symbols keyboard, so the "equals" call was failing. It was probably due to voice mode changing between keyboard creation and display. --- src/com/android/inputmethod/latin/KeyboardSwitcher.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/src/com/android/inputmethod/latin/KeyboardSwitcher.java index 4322997e8..438680cf8 100644 --- a/src/com/android/inputmethod/latin/KeyboardSwitcher.java +++ b/src/com/android/inputmethod/latin/KeyboardSwitcher.java @@ -147,8 +147,7 @@ public class KeyboardSwitcher { public boolean equals(KeyboardId other) { return other.mXml == this.mXml && other.mKeyboardMode == this.mKeyboardMode - && other.mEnableShiftLock == this.mEnableShiftLock - && other.mHasVoice == this.mHasVoice; + && other.mEnableShiftLock == this.mEnableShiftLock; } public int hashCode() {