Back to project page RSSFeedReader-App.
The source code is released under:
GNU General Public License
If you think the Android project RSSFeedReader-App listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package android.support.v4.app; //from w w w . j a va 2 s . com import android.os.Bundle; import android.view.ViewGroup; /* This class is a wrapper for the Android Support Library v4's FragmentStatePagerAdapter. It addresses an issue in which the ClassLoader is not set correctly upon reading a saved state Source https//code.google.com/p/android/issues/detail?id=37484 */ public abstract class FixedFragmentStatePagerAdapter extends FragmentStatePagerAdapter { public FixedFragmentStatePagerAdapter(FragmentManager fm) { super(fm); } @Override public Object instantiateItem(ViewGroup container, int position) { Fragment f = (Fragment) super.instantiateItem(container, position); Bundle savedFragmentState = f.mSavedFragmentState; if (savedFragmentState != null) { savedFragmentState.setClassLoader(f.getClass().getClassLoader()); } return f; } }