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

Commit ce93621d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix sensor activate after SensorEventConnection removed" am: b51a9cc9

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1577107

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id76c916a0fee0f17f58df45c3c3c9d02d566f4b0
parents 131370cf b51a9cc9
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) {