Code example for ListFragment

Methods: onDestroy

0
		return super.onCreateView(inflater, container, savedInstanceState);
	} 
 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		mActivityFirstCreated = true;
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		final Activity activity = getActivity();
		if (activity instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) activity).onDetachFragment(this);
		} 
		final Fragment fragment = getParentFragment();
		if (fragment instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) fragment).onDetachFragment(this);
		} 
	}