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

setOnFABMenuSelectedListener does not return the correct itemId passed in FABMenuItem #42

Open
mrkayza opened this issue Jul 9, 2022 · 1 comment

Comments

@mrkayza
Copy link

mrkayza commented Jul 9, 2022

I'm using the FABMenuItem(int id, String title, Drawable iconDrawable) constructor, using my ID.

But when I use fabMenu.setOnFABMenuSelectedListener to get the item id it returns its position and not the id I passed in.
I checked the code and see you have reset that id by position in function setMenuItems (FABRevealMenu class). That is not true according to the processing flow.

Please check again.

image

@HarinTrivedi
Copy link
Owner

@mrkayza Hi, you need to use another method if you are using your id
setUpMenu()

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

No branches or pull requests

2 participants