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

Commit dc04d616 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Revert "Avoid NPE under stress conditions"

This reverts commit 6798f157.

Reason for revert: 127996235
Fixes: 127996235
Change-Id: I51b2afa558fe71cb64e12e37e36132f3e0190c5d
parent 6798f157
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);
                    }