1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00

MainActivity: Remove setOffscreenPageLimit (fixes #327) (fixes #321)

This commit is contained in:
Catfriend1 2019-02-19 08:02:28 +01:00
parent 88677c9638
commit 53d3c13403

View file

@ -280,7 +280,11 @@ public class MainActivity extends SyncthingActivity
};
try {
mViewPager.setAdapter(mSectionsPagerAdapter);
mViewPager.setOffscreenPageLimit(numPages);
/**
* See issues #321, #327
* Call stack on IllegalStateException: onServiceStateChange/updateViewPager/setOffscreenPageLimit
*/
// mViewPager.setOffscreenPageLimit(numPages);
} catch (IllegalStateException e) {
/**
* IllegalStateException happens due to a bug in FragmentStatePagerAdapter.