Code example for Fragment

Methods: getView, isAdded

0
        ((TextView)view.findViewById(R.id.list_empty_text)).setText(i);
    } 
 
    protected final void doShowEmptyViewProgressDelayed() 
    { 
        if(isAdded() && !mPaused)
        { 
            View view = getView();
            if(view != null)
                doShowEmptyViewProgress(view);
        } 
    } 
 
    protected abstract boolean isEmpty(); 
 
    public void onCreate(Bundle bundle)
    { 
        super.onCreate(bundle);
        if(bundle != null)
        { 
            mRestoredFragment = true;