|
@@ -69,6 +69,8 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
|
|
|
|
UglyDbHelper dbh;
|
|
UglyDbHelper dbh;
|
|
|
|
|
|
|
|
+ private String sectionToOpen = "";
|
|
|
|
+
|
|
|
|
|
|
public RecordOverviewFragment(){}
|
|
public RecordOverviewFragment(){}
|
|
|
|
|
|
@@ -182,6 +184,14 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
//return super.onOptionsItemSelected(item);
|
|
//return super.onOptionsItemSelected(item);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public void onStart() {
|
|
|
|
+ super.onStart();
|
|
|
|
+ this.populateListViewFromDB(this.expListView);
|
|
|
|
+ }
|
|
|
|
+
|
|
/*****************************
|
|
/*****************************
|
|
*
|
|
*
|
|
* Public API
|
|
* Public API
|
|
@@ -195,6 +205,10 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
*/
|
|
*/
|
|
public void showDetailsForSSID(String SSID) {
|
|
public void showDetailsForSSID(String SSID) {
|
|
Log.e("RecordOverviewFragment", "Implement showDetailsForSSID!!");
|
|
Log.e("RecordOverviewFragment", "Implement showDetailsForSSID!!");
|
|
|
|
+ this.clearFilter();
|
|
|
|
+ int ESSID_INDEX = 2;
|
|
|
|
+ ArrayList<String> ssids = new ArrayList<String>();
|
|
|
|
+ this.groupingKey = this.groupingTitles().get(ESSID_INDEX);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -256,8 +270,28 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
RecordListAdapter adapter = new RecordListAdapter(this.getApplicationContext(), groupTitle, sectionData);
|
|
RecordListAdapter adapter = new RecordListAdapter(this.getApplicationContext(), groupTitle, sectionData);
|
|
|
|
|
|
mylist.setAdapter(adapter);
|
|
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 = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void setSectionToOpen(String s){
|
|
|
|
+ this.sectionToOpen = s;
|
|
|
|
+ if (this.sectionToOpen != null && this.sectionToOpen.length() != 0){
|
|
|
|
+ if (this.getGroupTitle().contains(this.sectionToOpen)){
|
|
|
|
+ int section = this.getGroupTitle().indexOf(this.sectionToOpen);
|
|
|
|
+ this.expListView.expandGroup(section);
|
|
|
|
+ this.sectionToOpen = "";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
private Context getBaseContext(){
|
|
private Context getBaseContext(){
|
|
return this.getActivity().getBaseContext();
|
|
return this.getActivity().getBaseContext();
|
|
}
|
|
}
|