You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
setSelected() does not set the background color #18
When invoking toggle.setSelected(true) the button gets selected but the button background doesn't show the selection.
I've already found a workaround for this issue: use toggle.setToggled(toggle.getId(), true);:
As a developer I'm expecting that setSelected(true) selects the toggle and marks the toggle background as selected. Could you fix this small bug?
Activity
dr0-dev commentedon Jul 16, 2021
wrong method, you should use menu.setToggled(R.id.my_id, true);