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

Commit 25614758 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

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

Merge "Pick up device configuration "device.internal = 0". Before, only "device.internal = 1" had an effect."
parents 960ba913 e81056f3
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;