some fixes
[DHBWCampusApp.git] / app / src / main / java / de / dhbwloe / campusapp / NavigationManager.java
index 07732f2a589595682e178f1c320f2db32209908f..1330940689b5f8bb3efcfdf4821e1f8a7ff18b15 100644 (file)
@@ -167,6 +167,7 @@ public class NavigationManager {
     public boolean closeDialog() {
         if(oCurrentPage != null && oCurrentPage.fragmentType == 3) {
             PopupFragment fragment = (PopupFragment) oCurrentFragment;
+            boolean wasAdded = false;
             if(oCurrentFragment.isAdded()) {
                 fragment.destroyView();
 
@@ -175,13 +176,13 @@ public class NavigationManager {
 
                 transaction.remove(oCurrentFragment);
                 transaction.commit();
+                wasAdded = true;
             }
 
             oCurrentPage = oParentPage;
             oCurrentFragment = oParentFragment;
 
-
-            return true;
+            return wasAdded;
         }
         return false;
     }