Closed MFlisar closed 7 years ago
@MFlisar which version are you on?
First. Why did you have to change to the above: withSelectWithItemUpdate
? In general the normal state change should be enough for selecting / deselecting.
Also I think iterating over all items when the theme changes to adjust the colors shouldn't be done, as it is slower as if you would just handle the items on your own and just set the colors at the normal bind view method.
But the above do not describe why you get into this issue. Do you call the above method in the main ui thread?
I'm using the current develop branch.
I tried withSelectWithItemUpdate
because of this issue: https://github.com/mikepenz/MaterialDrawer/issues/1180
I'm calling the themeDrawerItem(IDrawerItem item)
before showing anything, this is only called when I setup the drawer builder. The mDrawerLeft.setSelection(selectedId, false);
is called from the main thread as well.
Again, selection works perfectly fine (everything but the icon tinting => selector and text tinting work fine)
@MFlisar that's weird again :/ probably you can create another sample app so I can try and debug it
@MFlisar any update? otherwise I have to close this.
Just comment to bring this up again
After reading a few issues here, I adjusted my code to use following:
Here is my theming function for the drawer, I call it for all my items in the drawer:
Now I allow the user to select pages via a
BottomNavigationView
in addition to theDrawer
and so I need to sync the selection states and whenever the page changes, I call following:This leads to following:
Any ideas what could be the problem here?