mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
Specifically set Profile nav graph as default instead of using index, as the index may change if manNavList order is changed
This commit is contained in:
parent
2d44033d3c
commit
8b502561c2
@ -324,7 +324,7 @@ public class MainActivity extends BaseLanguageActivity {
|
|||||||
if (setDefaultFromSettings) {
|
if (setDefaultFromSettings) {
|
||||||
final String defaultTabIdString = settingsHelper.getString(Constants.DEFAULT_TAB);
|
final String defaultTabIdString = settingsHelper.getString(Constants.DEFAULT_TAB);
|
||||||
try {
|
try {
|
||||||
final int defaultNavId = Utils.isEmpty(defaultTabIdString) ? mainNavList.get(2) : Integer.parseInt(defaultTabIdString);
|
final int defaultNavId = Utils.isEmpty(defaultTabIdString) ? R.navigation.profile_nav_graph : Integer.parseInt(defaultTabIdString);
|
||||||
final int index = mainNavList.indexOf(defaultNavId);
|
final int index = mainNavList.indexOf(defaultNavId);
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
firstFragmentGraphIndex = index;
|
firstFragmentGraphIndex = index;
|
||||||
|
Loading…
Reference in New Issue
Block a user