Closed rckahale closed 3 years ago
@rckahale sorry for the late answer.
If you try it in the sample pap can you reproduce the issue?
the removeByIdentifier
is a function of the FastAdapter
and less specific of the MaterialDrawer
Please report if the answer helped. closing for inactivity
Firstly ...Very useful and feature rich library. Thanks for making it.
Briefly describe the issue I am facing an issue while toggling the [ExpandableDrawerItem1(id:55), SecondaryDrawerItem1(id:501)...Group1] items combination with another [ExpandableDrawerItem2(id:66), SecondaryDrawerItem2(id:601)...Group2] combination. The toggling happens from the OnCheckedChangeListener of SwitchDrawerItem.
How can the issue be reproduced / sample code
Currently I am using
and vice versa for other toggle state
which works, with the following exceptions.
If I toggle by keeping ExpandableDrawerItem in expanded state, it does not work more than 1 or 2 set of times. Later it doesn't even expand...simply closes the drawer. I guess, this is because the isExpanded boolean flags have reached some inconsistent state. For ExpandableDrawerItem in closed state, it does not cause this issue.
I suppose, assigning new IDs on every toggle may be a fix, but it would be very tedious to attach the listeners and do subsequent operations.
Do tell me if there is a better way to achieve this.
Details
Checklist