浏览代码

small clean

Julien Clauter 11 年之前
父节点
当前提交
9f9a696fd9
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      src/de/tudarmstadt/informatik/hostage/ui2/fragment/RecordOverviewFragment.java

+ 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){