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

Commit 74aeadcb authored by Robyn Coultas's avatar Robyn Coultas Committed by Isaac Katzenelson
Browse files

Fix NPE when stopping off-screen times-up timers

Bug: 7352792
Change-Id: I802681b268cef027e183587482d5366c5c212ddc
parent 1048518d
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);