1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-15 08:51:36 +00:00

Redesigned the BottomNavigationView for better clarity + to match the Material Guidelines

This commit is contained in:
Vojtěch Hořánek 2021-01-20 00:09:04 +01:00
parent db7141c506
commit 0d9db83dc3
10 changed files with 60 additions and 35 deletions

View file

@ -394,7 +394,7 @@ public class MainActivity extends BaseLanguageActivity implements FragmentManage
if (!TextUtils.isEmpty(defaultTabResNameString)) {
navId = getResources().getIdentifier(defaultTabResNameString, "navigation", getPackageName());
}
final int defaultNavId = navId <= 0 ? R.navigation.profile_nav_graph
final int defaultNavId = navId <= 0 ? R.navigation.feed_nav_graph
: navId;
final int index = mainNavList.indexOf(defaultNavId);
if (index >= 0) firstFragmentGraphIndex = index;