Example usage for android.app Fragment initState

List of usage examples for android.app Fragment initState

Introduction

In this page you can find the example usage for android.app Fragment initState.

Prototype

void initState() 

Source Link

Document

Called by the fragment manager once this fragment has been removed, so that we don't have any left-over state if the application decides to re-use the instance.

Usage

From source file:android.app.FragmentManager.java

void makeInactive(Fragment f) {
    if (f.mIndex < 0) {
        return;//from  w ww.  j  a  v a2s.co m
    }

    if (DEBUG)
        Log.v(TAG, "Freeing fragment index " + f);
    mActive.set(f.mIndex, null);
    if (mAvailIndices == null) {
        mAvailIndices = new ArrayList<Integer>();
    }
    mAvailIndices.add(f.mIndex);
    mActivity.invalidateFragment(f.mWho);
    f.initState();
}