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

Commit f5a44ae2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 8c5e3bde aa6dc09e
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) {