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

Commit b51a9cc9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix sensor activate after SensorEventConnection removed"

parents 682f459f 94ae1317
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -689,9 +689,9 @@ status_t SensorDevice::activateLocked(void* ident, int handle, int enabled) {
        ALOGD_IF(DEBUG_CONNECTIONS, "enable index=%zd", info.batchParams.indexOfKey(ident));

        if (isClientDisabledLocked(ident)) {
            ALOGE("SensorDevice::activate, isClientDisabledLocked(%p):true, handle:%d",
            ALOGW("SensorDevice::activate, isClientDisabledLocked(%p):true, handle:%d",
                    ident, handle);
            return INVALID_OPERATION;
            return NO_ERROR;
        }

        if (info.batchParams.indexOfKey(ident) >= 0) {