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
Loading
Please register or sign in to comment