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

Commit fc73208e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents fdc84a13 e3ac6f85
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: