From: Damyan Ivanov Date: Sun, 20 Jan 2019 19:08:14 +0000 (+0000) Subject: initially mark the account list as current in the navigation drawer X-Git-Tag: v0.3~6 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=dc38d4a30e643611ce9374448ce142610dba7b87;p=mobile-ledger.git initially mark the account list as current in the navigation drawer --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index 1e4b4460..1afc155d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -128,6 +128,8 @@ public class MainActivity extends AppCompatActivity { fragmentManager = getSupportFragmentManager(); mSectionsPagerAdapter = new SectionsPagerAdapter(fragmentManager); + markDrawerItemCurrent(R.id.nav_account_summary); + mViewPager = findViewById(R.id.root_frame); mViewPager.setAdapter(mSectionsPagerAdapter); mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {