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

Commit cc72d1ef authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "AOD: Avoid double re-registration of sensors" into oc-dr1-dev am: fc73208e

am: 2f5f9b6a

Change-Id: I2f2a33d45c7bd7c6ba3828baefeb051a51cca754
parents 3594b9f4 2f5f9b6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -191,10 +191,10 @@ public class DozeTriggers implements DozeMachine.Part {
            case DOZE:
            case DOZE_AOD:
                mDozeSensors.setProxListening(newState != DozeMachine.State.DOZE);
                mDozeSensors.setListening(true);
                if (oldState != DozeMachine.State.INITIALIZED) {
                    mDozeSensors.reregisterAllSensors();
                }
                mDozeSensors.setListening(true);
                break;
            case DOZE_AOD_PAUSED:
            case DOZE_AOD_PAUSING: