diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-05-30 14:33:16 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-05-30 14:33:16 -0700 |
commit | bf677f48b73fc8d6fea9f09ad9d0e423f982d260 (patch) | |
tree | 9dfcca0c8a31ad56a35bd8eee9c80885985a7145 /src | |
parent | 66a55562c7848d7616196238605e7970d231d22b (diff) | |
download | packages_apps_settings-bf677f48b73fc8d6fea9f09ad9d0e423f982d260.zip packages_apps_settings-bf677f48b73fc8d6fea9f09ad9d0e423f982d260.tar.gz packages_apps_settings-bf677f48b73fc8d6fea9f09ad9d0e423f982d260.tar.bz2 |
Fix comparison of device source bits.
Bug: 6576743
Change-Id: I123307defc32a84a965590fbded95c6997260675
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index d848503..bc8b458 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -407,8 +407,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment InputDevice device = InputDevice.getDevice(devices[i]); if (device != null && !device.isVirtual() - && (device.getSources() & InputDevice.SOURCE_KEYBOARD) != 0 - && device.getKeyboardType() == InputDevice.KEYBOARD_TYPE_ALPHABETIC) { + && device.isFullKeyboard()) { final String inputDeviceDescriptor = device.getDescriptor(); final String keyboardLayoutDescriptor = mIm.getCurrentKeyboardLayoutForInputDevice(inputDeviceDescriptor); |