mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 15:51:17 +00:00
parent
88677c9638
commit
53d3c13403
1 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue