mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 06:11:19 +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 {
|
try {
|
||||||
mViewPager.setAdapter(mSectionsPagerAdapter);
|
mViewPager.setAdapter(mSectionsPagerAdapter);
|
||||||
mViewPager.setOffscreenPageLimit(numPages);
|
/**
|
||||||
|
* See issues #321, #327
|
||||||
|
* Call stack on IllegalStateException: onServiceStateChange/updateViewPager/setOffscreenPageLimit
|
||||||
|
*/
|
||||||
|
// mViewPager.setOffscreenPageLimit(numPages);
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
/**
|
/**
|
||||||
* IllegalStateException happens due to a bug in FragmentStatePagerAdapter.
|
* IllegalStateException happens due to a bug in FragmentStatePagerAdapter.
|
||||||
|
|
Loading…
Reference in a new issue