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

Commit 5d424061 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Revert "Avoid NPE under stress conditions""

parents a81b6c94 dc04d616
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ import java.util.Calendar;
 */
public class DozeUi implements DozeMachine.Part {

    private static final String TAG = "DozeUi";
    private static final long TIME_TICK_DEADLINE_MILLIS = 90 * 1000; // 1.5min
    private final Context mContext;
    private final DozeHost mHost;
@@ -94,10 +93,6 @@ public class DozeUi implements DozeMachine.Part {
                new DozeHost.PulseCallback() {
                    @Override
                    public void onPulseStarted() {
                        if (mMachine.getState() != DozeMachine.State.DOZE_REQUEST_PULSE) {
                            Log.w(TAG, "Pulse was cancelled before it could have been started");
                            return;
                        }
                        mMachine.requestState(DozeMachine.State.DOZE_PULSING);
                    }