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

Commit ad8ed3ae authored by Chris Kuiper's avatar Chris Kuiper Committed by Automerger Merge Worker
Browse files

sensorservice: Fix SensorDevice::isSensorActive(). am: c63880a5

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

Change-Id: I92f144eecb30b7eeb513c9ac204be650e21d6b6f
parents 7ebff4af c63880a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -915,7 +915,7 @@ bool SensorDevice::isSensorActive(int handle) const {
    if (activationIndex < 0) {
        return false;
    }
    return mActivationCount.valueAt(activationIndex).numActiveClients() > 0;
    return mActivationCount.valueAt(activationIndex).isActive;
}

void SensorDevice::onMicSensorAccessChanged(void* ident, int handle, nsecs_t samplingPeriodNs) {