mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
cache all pages, android
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user