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

Commit 621e5d6e authored by Isaac Katzenelson's avatar Isaac Katzenelson Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when stopping off-screen times-up timers" into jb-mr1-dev

parents 36815383 74aeadcb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -683,7 +683,10 @@ public class TimerFragment extends DeskClockFragment
                break;
            case TimerObj.STATE_TIMESUP:
                t.mState = TimerObj.STATE_DONE;
                // Used in a context where the timer could be off-screen and without a view
                if (t.mView != null) {
                    ((TimerListItem) t.mView).done();
                }
                updateTimersState(t, Timers.TIMER_DONE);
                cancelTimerNotification(t.mTimerId);
                updateTimesUpMode(t);