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

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

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

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

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


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