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

Commit ebdd3d50 authored by Brian Stack's avatar Brian Stack Committed by android-build-merger
Browse files

Merge "Mark auto-disabled sensor as not active" into qt-dev

am: f5a44ae2

Change-Id: I0f4966f697243fb785eed874927efa832e3083e1
parents debaea3b f5a44ae2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -539,6 +539,9 @@ void SensorDevice::autoDisable(void *ident, int handle) {
    }
    Info& info(mActivationCount.editValueAt(activationIndex));
    info.removeBatchParamsForIdent(ident);
    if (info.numActiveClients() == 0) {
        info.isActive = false;
    }
}

status_t SensorDevice::activate(void* ident, int handle, int enabled) {