diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java index a2d47444af..5948928d22 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainActivity.java @@ -66,6 +66,7 @@ public final class MainActivity extends AppCompatActivity implements MainView PlatformPagerAdapter platformPagerAdapter = new PlatformPagerAdapter( getSupportFragmentManager(), this); mViewPager.setAdapter(platformPagerAdapter); + mViewPager.setOffscreenPageLimit(platformPagerAdapter.getCount()); showGames(); GameFileCacheService.startLoad(this); } @@ -174,6 +175,7 @@ public final class MainActivity extends AppCompatActivity implements MainView PlatformPagerAdapter platformPagerAdapter = new PlatformPagerAdapter( getSupportFragmentManager(), this); mViewPager.setAdapter(platformPagerAdapter); + mViewPager.setOffscreenPageLimit(platformPagerAdapter.getCount()); mTabLayout.setupWithViewPager(mViewPager); mViewPager.setVisibility(View.VISIBLE); GameFileCacheService.startLoad(this);