Closed clenrock closed 7 years ago
Have you considered looking at the labelFor
property of the Label
in order to get the ID of the actual button?
@ericcornelissen No, do you think that makes a nicer solution?
If it works it would because you could keep the switch
-statement
@ericcornelissen I tried it, but the ID that is returned is not the one of the button. So I'll keep it like this
Too bad 😢
Relevant Issues: #216
Related Pull Requests: -
What
This Pull Request adds to the repository a fix for the bug described at #216.
How
This feature can be viewed/tested within the project by opening the MainActivity and clicking on the fab button's label.
Notes
Unfortunately I had to make the switch-case an if-else statement