|
@@ -65,6 +65,9 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
private LogFilter filter;
|
|
private LogFilter filter;
|
|
private boolean showFilterButton;
|
|
private boolean showFilterButton;
|
|
|
|
|
|
|
|
+ private int mListPosition = -1;
|
|
|
|
+ private int mItemPosition = -1;
|
|
|
|
+
|
|
public String groupingKey;
|
|
public String groupingKey;
|
|
|
|
|
|
private ExpandableListView expListView;
|
|
private ExpandableListView expListView;
|
|
@@ -132,7 +135,11 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
this.openSections = new ArrayList<Integer>();
|
|
this.openSections = new ArrayList<Integer>();
|
|
}
|
|
}
|
|
|
|
|
|
- //this.expListView.smoothScrollToPosition(scrollPosition);
|
|
|
|
|
|
+ if (mListPosition != -1 && mItemPosition != -1)
|
|
|
|
+ this.expListView.setSelectedChild(mListPosition, mItemPosition, true);
|
|
|
|
+
|
|
|
|
+ mListPosition = -1;
|
|
|
|
+ mItemPosition = -1;
|
|
|
|
|
|
registerListClickCallback(mylist);
|
|
registerListClickCallback(mylist);
|
|
|
|
|
|
@@ -338,6 +345,8 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
|
|
|
|
|
|
ExpandableListItem item = (ExpandableListItem)adapter.getChild(i,i2);
|
|
ExpandableListItem item = (ExpandableListItem)adapter.getChild(i,i2);
|
|
|
|
|
|
|
|
+ mListPosition = i;
|
|
|
|
+ mItemPosition = i2;
|
|
UglyDbHelper dbh = new UglyDbHelper(getBaseContext());
|
|
UglyDbHelper dbh = new UglyDbHelper(getBaseContext());
|
|
Record rec = dbh.getRecordOfAttackId((int) item.getTag());
|
|
Record rec = dbh.getRecordOfAttackId((int) item.getTag());
|
|
RecordOverviewFragment.this.pushRecordDetailViewForRecord(rec);
|
|
RecordOverviewFragment.this.pushRecordDetailViewForRecord(rec);
|