Julien Clauter před 11 roky
rodič
revize
9f9a696fd9

+ 1 - 9
src/de/tudarmstadt/informatik/hostage/ui2/fragment/RecordOverviewFragment.java

@@ -270,15 +270,7 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
         RecordListAdapter adapter = new RecordListAdapter(this.getApplicationContext(), groupTitle, sectionData);
 
         mylist.setAdapter(adapter);
-
-        if (this.sectionToOpen != null && this.sectionToOpen.length() != 0){
-            if (this.getGroupTitle().contains(this.sectionToOpen)){
-                int section = this.getGroupTitle().indexOf(this.sectionToOpen);
-                mylist.expandGroup(section);
-                this.sectionToOpen = "";
-            }
-        }
-
+        this.setSectionToOpen(this.sectionToOpen);
 	}
 
     private void setSectionToOpen(String s){