-
Notifications
You must be signed in to change notification settings - Fork 111
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
Always trigger OnTabInterceptListener #3
Comments
What would be the use-case for this? I think it should only be called whenever a new tab is selected, because when it is selected it is already too late to prevent it from being selected? |
In my application, I open a new fragment by clicking a button on the initial fragment. The bottom navigation state won't be changed at that moment, so the same item remains selected. When the user clicks the already selected item again, the initial fragment should be shown. At this moment, I can't achieve that since the listener won't get triggered. |
If I understand correctly, you want the user to be able to return to the top level fragment whenever he presses a selected tab again? I think adding a |
Yes, that sounds great. That might even be better! |
@danbo2468 it is available now in version |
Thank you! You're the best! |
Ability to trigger OnTabInterceptListener even when the clicked tab is the currently selected tab.
The text was updated successfully, but these errors were encountered: