Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make multiple items highlighted at the same time #107

Open
ChinaFLTV opened this issue Jun 11, 2023 · 1 comment
Open

Can't make multiple items highlighted at the same time #107

ChinaFLTV opened this issue Jun 11, 2023 · 1 comment

Comments

@ChinaFLTV
Copy link

  • Library Version v2.2.3
  • Affected Device(s) Huawei honor with Android 9.0

I checked the source code and found that the setSelectedPosition method called in the getView method in the MenuListAdapter will clear other items except the first one in the selected state,making the selection settings for other items invalid,thus making only one item in the highlighted state in the same time period,sos >~~<

Expected Behavior:

multiple item are in the highlighted state at the same time period when open the powermenu

@ChinaFLTV
Copy link
Author

Now,I adjust the method in the BasicListAdapter by removing the call to the function called setSelectedSection and it achieve previous idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant