Fixed the bottomNavigation refresh when a route is started

This commit is contained in:
Bart
2021-01-06 18:31:55 +01:00
parent f868302d30
commit 56a14c2482
4 changed files with 13 additions and 5 deletions

View File

@@ -113,10 +113,10 @@ public class MainActivity extends AppCompatActivity implements Refreshable {
* refreshes bottom navigation
*/
@Override
public void refresh() {
public void refreshAndNavigateTo(int id) {
bottomNav.getMenu().clear();
bottomNav.inflateMenu(R.menu.navmenu);
bottomNav.setSelectedItemId(R.id.settings);
bottomNav.setSelectedItemId(id);
}
private View.OnClickListener onInfoClickListener = new View.OnClickListener() {