From: Damyan Ivanov Date: Sun, 5 May 2019 19:57:37 +0000 (+0300) Subject: store current page index on page change X-Git-Tag: v0.10.0~1 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=4cec0e91508f609f4d059789badf08a0beb686b5;p=mobile-ledger.git store current page index on page change this was the missing piece to store the current page in the saved state so that when the app is switched out and then back in the page is kept --- 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 d7447f07..dcb5d18a 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 @@ -206,6 +206,7 @@ public class MainActivity extends ProfileThemedActivity { pageChangeListener = new ViewPager.SimpleOnPageChangeListener() { @Override public void onPageSelected(int position) { + mCurrentPage = position; switch (position) { case 0: markDrawerItemCurrent(R.id.nav_account_summary);