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

Skip to content
Commit c37a5cab authored by Michael W's avatar Michael W
Browse files

DeskClock: Fix adding alarms after deletion

* When deleting any alarm and adding another (can also be via "Undo"),
  the newly added alarm rebinds the dismissed alarm
* The last state of the dismissed item was "expanded", therefore the
  now added collapsed item would rely on onAnimationEnd of the
  previously shown ExpandedAlarmViewHolder to set the visibility
* Use onRecycleItemView() which is called when an item gets recycled
  and show the items explicitely

* Test
- Add 1 alarm
- expand it
- delete it
- add another alarm
- observe: The new alarm is "empty" until you click to expand

Change-Id: If806e188175680a77b68e2860b7117a229221faa
parent 42067fb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment