diff options
author | 2010-11-19 16:04:52 -0800 | |
---|---|---|
committer | 2010-11-23 23:13:39 -0800 | |
commit | 6624fd873681160295fe4475aff54512ca905b98 (patch) | |
tree | bbd451ca795369d123a4cfc95cc7e4bec9fc9e07 /java/src/com/android/inputmethod/latin/KeyboardSwitcher.java | |
parent | 59c9930ca98f68aeb6b0b9dc19e29666b8fb152a (diff) | |
download | latinime-6624fd873681160295fe4475aff54512ca905b98.tar.gz latinime-6624fd873681160295fe4475aff54512ca905b98.tar.xz latinime-6624fd873681160295fe4475aff54512ca905b98.zip |
Support imeOptions condition in <case>
Change-Id: Ie5494601efb29cf65363c4aa3bf5a9ab04a0109a
Diffstat (limited to 'java/src/com/android/inputmethod/latin/KeyboardSwitcher.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/KeyboardSwitcher.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java index b90ea2471..68c35791c 100644 --- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java @@ -22,6 +22,7 @@ import android.content.res.Resources; import android.preference.PreferenceManager; import android.util.Log; import android.view.InflateException; +import android.view.inputmethod.EditorInfo; import java.lang.ref.SoftReference; import java.util.Arrays; @@ -165,7 +166,9 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha this.mHasSettingsKey = hasSettingsKey; this.mVoiceKeyEnabled = voiceKeyEnabled; this.mHasVoiceKey = hasVoiceKey; - this.mImeOptions = imeOptions; + // We are interested only in IME_MASK_ACTION enum value and IME_FLAG_NO_ENTER_ACTION. + this.mImeOptions = imeOptions + & (EditorInfo.IME_MASK_ACTION | EditorInfo.IME_FLAG_NO_ENTER_ACTION); this.mEnableShiftLock = enableShiftLock; this.mHashCode = Arrays.hashCode(new Object[] { @@ -301,7 +304,6 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha mSubtypeSwitcher.getInputLocale()); keyboard = new LatinKeyboard(mInputMethodService, id); - keyboard.setImeOptions(res, id.mMode, id.mImeOptions); if (id.mEnableShiftLock) { keyboard.enableShiftLock(); |