|
@@ -118,9 +118,29 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
|
|
|
|
View rootView = inflater.inflate(this.getLayoutId(), container, false);
|
|
View rootView = inflater.inflate(this.getLayoutId(), container, false);
|
|
ExpandableListView mylist = (ExpandableListView) rootView.findViewById(R.id.loglistview);
|
|
ExpandableListView mylist = (ExpandableListView) rootView.findViewById(R.id.loglistview);
|
|
|
|
+
|
|
|
|
+ ArrayList<Integer> openSections = new ArrayList<Integer>();
|
|
|
|
+ if(this.expListView != null){
|
|
|
|
+ int numOfGroups = this.expListView.getExpandableListAdapter().getGroupCount();
|
|
|
|
+
|
|
|
|
+ for (int i = 0; i < numOfGroups; i++){
|
|
|
|
+ boolean isOpen = this.expListView.isGroupExpanded(i);
|
|
|
|
+ if (isOpen){
|
|
|
|
+ openSections.add(i);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
this.expListView = mylist;
|
|
this.expListView = mylist;
|
|
populateListViewFromDB(mylist);
|
|
populateListViewFromDB(mylist);
|
|
|
|
|
|
|
|
+ if (openSections.size() != 0){
|
|
|
|
+ for (int i = 0; i < openSections.size(); i++){
|
|
|
|
+ int index = openSections.get(i);
|
|
|
|
+ this.expListView.expandGroup(index);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
registerListClickCallback(mylist);
|
|
registerListClickCallback(mylist);
|
|
|
|
|
|
ImageButton filterButton = (ImageButton) rootView.findViewById(R.id.FilterButton);
|
|
ImageButton filterButton = (ImageButton) rootView.findViewById(R.id.FilterButton);
|