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

Commit 7ebf2774 authored by James Lemieux's avatar James Lemieux
Browse files

Expand the alarm requested for display

Prior code merely scrolled to the location of the alarm but
left it collapsed.

Bug: 23432018
Change-Id: Iba06a5d6a5719e15f4fd13f53815ea91506b0057
parent bd9eae10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ public final class AlarmClockFragment extends DeskClockFragment implements
        }

        if (alarmPosition >= 0) {
            smoothScrollTo(alarmPosition);
            mAlarmTimeAdapter.expand(alarmPosition);
        } else {
            // Trying to display a deleted alarm should only happen from a missed notification for
            // an alarm that has been marked deleted after use.
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ public final class AlarmTimeAdapter extends RecyclerView.Adapter<AlarmTimeViewHo
    }

    /**
     * Request the UI to expand the alarm at selected position.
     * Request the UI to expand the alarm at selected position and scroll it into view.
     */
    public void expand(int position) {
        final long stableId = getItemId(position);