From: Damyan Ivanov Date: Wed, 21 Apr 2021 19:34:48 +0000 (+0300) Subject: preload transaction list page, making transition smoother X-Git-Tag: v0.18.0~64 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=0e8c672647208838cb3a35bfdab22747c52a88b7;p=mobile-ledger.git preload transaction list page, making transition smoother --- 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 55392876..92764505 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 @@ -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() {