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

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

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

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

Change-Id: I8f7b502151d8fee9cd9ad3878ae8b70ec419ae55
parents 9173fc1a d7f24c9e
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) {