diff options
author | Max Braun <braun@google.com> | 2011-08-30 14:35:45 -0700 |
---|---|---|
committer | Max Braun <braun@google.com> | 2011-08-30 14:40:43 -0700 |
commit | e81056f35041de24adad9bc5384b9e8f72bf95f6 (patch) | |
tree | 5baaf4f7f3d90042eedcbe2a281699cc4fa3a008 /services/input | |
parent | be1a0493a8bf589137874bec4222297fbb712185 (diff) | |
download | frameworks_base-e81056f35041de24adad9bc5384b9e8f72bf95f6.zip frameworks_base-e81056f35041de24adad9bc5384b9e8f72bf95f6.tar.gz frameworks_base-e81056f35041de24adad9bc5384b9e8f72bf95f6.tar.bz2 |
Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect.
Change-Id: Ie88ed66e0841418c147bed2e23806405bdd17ad6
Diffstat (limited to 'services/input')
-rw-r--r-- | services/input/EventHub.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp index 1d7cc19..06dea36 100644 --- a/services/input/EventHub.cpp +++ b/services/input/EventHub.cpp @@ -1094,9 +1094,8 @@ void EventHub::clearKeyboardPropertiesLocked(Device* device, bool builtInKeyboar bool EventHub::isExternalDeviceLocked(Device* device) { if (device->configuration) { bool value; - if (device->configuration->tryGetProperty(String8("device.internal"), value) - && value) { - return false; + if (device->configuration->tryGetProperty(String8("device.internal"), value)) { + return !value; } } return device->identifier.bus == BUS_USB || device->identifier.bus == BUS_BLUETOOTH; |