#499·BottomBar

Select Tab without triggering Listener

Author: mtheadleyCreated Sep 16, 2016Updated Apr 20, 2022

Is there a way to change the BottomBar programmatically without triggering the listener? The app has a navigation path using a deeplink, the navigation is handled correctly (A bundle is passed for Fragment creation). When we change the selected tab (so the correct item is highlighted), the listener is called and causes the fragment to reload a second time.

I tried to work around it by setting the listener to null, selected the correct tab, then re attaching the listener; however when the listener is attached it is called on the currently selected tab.

Any ideas?

Thanks!

//Mark.