]> git.ktnx.net Git - mobile-ledger.git/commitdiff
preload transaction list page, making transition smoother
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 21 Apr 2021 19:34:48 +0000 (22:34 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 21 Apr 2021 19:34:48 +0000 (22:34 +0300)
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java

index 55392876fd9f54882d98ca27ae46bb81ee1fd0f7..927645050059c5df831d23b874abbe3221c5d4f2 100644 (file)
@@ -178,6 +178,7 @@ public class MainActivity extends ProfileThemedActivity implements FabManager.Fa
         markDrawerItemCurrent(R.id.nav_account_summary);
 
         b.mainPager.setAdapter(mSectionsPagerAdapter);
+        b.mainPager.setOffscreenPageLimit(1);
 
         if (pageChangeCallback == null) {
             pageChangeCallback = new ViewPager2.OnPageChangeCallback() {