Select groups tab in bottom navigation view

This commit is contained in:
Alexander Sytnyk 2018-02-22 15:37:06 +02:00
parent b4f303b2bb
commit 01ffd6d974

View file

@ -171,6 +171,7 @@ public class MapMarkersDialogFragment extends android.support.v4.app.DialogFragm
groupsFragment.startLocationUpdate(); groupsFragment.startLocationUpdate();
groupsFragment.setGroupIdToOpen(groupIdToOpen); groupsFragment.setGroupIdToOpen(groupIdToOpen);
viewPager.setCurrentItem(GROUPS_POSITION, false); viewPager.setCurrentItem(GROUPS_POSITION, false);
bottomNav.getMenu().findItem(R.id.action_groups).setChecked(true);
} }
bottomNav.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() { bottomNav.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override @Override