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

Commit e124fbbc authored by Marvin Ramin's avatar Marvin Ramin Committed by Automerger Merge Worker
Browse files

Merge "Revert "Handle runtime sensor events even if there are no real ones.""...

Merge "Revert "Handle runtime sensor events even if there are no real ones."" into udc-dev am: 5636b187

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



Change-Id: I3a840a955eb91a492d4bff6f917dcd08f504b4a3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6fd105f0 5636b187
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1055,12 +1055,7 @@ bool SensorService::threadLoop() {
        if (count < 0) {
            if(count == DEAD_OBJECT && device.isReconnecting()) {
                device.reconnect();
                // There are no "real" events at this point, but do not skip the rest of the loop
                // if there are pending runtime events.
                Mutex::Autolock _l(&mLock);
                if (mRuntimeSensorEventQueue.empty()) {
                continue;
                }
            } else {
                ALOGE("sensor poll failed (%s)", strerror(-count));
                break;