Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e81056f3 authored by Max Braun's avatar Max Braun
Browse files

Pick up device configuration "device.internal = 0". Before, only...

Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect.

Change-Id: Ie88ed66e0841418c147bed2e23806405bdd17ad6
parent be1a0493
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;