Code example for FragmentStatePagerAdapter

Methods: notifyDataSetChanged

0
    } 
 
    @Override 
    public void notifyDataSetChanged() { 
        sort(); 
        super.notifyDataSetChanged(); 
    } 
 
    @Override 
    public Parcelable saveState() {
        Parcelable psuper = null;
        try { 
            psuper = super.saveState();
        } catch (Exception e) {
            Logger.LogError("Couldn't save ArrayPagerAdapter state.", e);
        } 
        Bundle state = new Bundle();
        if (psuper != null) {
            if (psuper instanceof Bundle)
                state = (Bundle)psuper;
            else