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

Commit 8633847b authored by James Lemieux's avatar James Lemieux
Browse files

Avoid IndexOutOfBounds when deleting timer - DO NOT MERGE

Bug: 26902786

This fix was already made downstream; no need to merge.

Change-Id: I9cf0d983963b2ab5b900b10b28ef8e013b56081a
parent e5cf47c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ public class TimerFragment extends DeskClockFragment {
            return null;
        }

        return mAdapter.getTimer(mViewPager.getCurrentItem());
        return mAdapter.getCount() == 0 ? null : mAdapter.getTimer(mViewPager.getCurrentItem());
    }

    private void startUpdatingTime() {