public boolean closeDialog() {
if(oCurrentPage != null && oCurrentPage.fragmentType == 3) {
PopupFragment fragment = (PopupFragment) oCurrentFragment;
+ boolean wasAdded = false;
if(oCurrentFragment.isAdded()) {
fragment.destroyView();
transaction.remove(oCurrentFragment);
transaction.commit();
+ wasAdded = true;
}
oCurrentPage = oParentPage;
oCurrentFragment = oParentFragment;
-
- return true;
+ return wasAdded;
}
return false;
}