List of usage examples for android.app Fragment isRemoving
final public boolean isRemoving()
From source file:org.cirrus.mobi.pegel.PegelFragmentsActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.detailmenu, menu); Fragment f = getFragmentManager().findFragmentById(R.id.details); //check if the pegel-details are shown, only then show the refresh action if ((!(f instanceof DetailDataFragment)) || f.isRemoving()) menu.removeItem(R.id.m_refresh); return true;/*from w w w.j a v a 2 s . co m*/ }