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

Commit 49b20db3 authored by Jim Kaye's avatar Jim Kaye Committed by android-build-merger
Browse files

Fix enforcement of sensor's slowest rate am: 663720b2

am: 6528410d

Change-Id: I3026783f4b9442d59939b2e2bf1755971a517b15
parents bd32a5d7 6528410d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1251,7 +1251,7 @@ status_t SensorService::enable(const sp<SensorEventConnection>& connection,
    }

    // Check maximum delay for the sensor.
    nsecs_t maxDelayNs = sensor->getSensor().getMaxDelay() * 1000;
    nsecs_t maxDelayNs = sensor->getSensor().getMaxDelay() * 1000LL;
    if (maxDelayNs > 0 && (samplingPeriodNs > maxDelayNs)) {
        samplingPeriodNs = maxDelayNs;
    }
@@ -1512,4 +1512,3 @@ bool SensorService::isOperationRestricted(const String16& opPackageName) {
}

}; // namespace android