Removed a bunch of old commented out code.
This commit is contained in:
parent
9b56d151d2
commit
ad86008f28
@ -62,39 +62,6 @@ public class PersistentExpandableListFragment extends ExpandableListFragment {
|
|||||||
outState.putLongArray("ExpandedIds", this.expandedIds);
|
outState.putLongArray("ExpandedIds", this.expandedIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
@Override
|
|
||||||
protected void onStart() {
|
|
||||||
super.onStart();
|
|
||||||
if (this.expandedIds != null) {
|
|
||||||
restoreExpandedState(expandedIds);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onStop() {
|
|
||||||
super.onStop();
|
|
||||||
expandedIds = getExpandedIds();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onSaveInstanceState(Bundle outState) {
|
|
||||||
super.onSaveInstanceState(outState);
|
|
||||||
this.expandedIds = getExpandedIds();
|
|
||||||
outState.putLongArray("ExpandedIds", this.expandedIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onRestoreInstanceState(Bundle state) {
|
|
||||||
super.onRestoreInstanceState(state);
|
|
||||||
long[] expandedIds = state.getLongArray("ExpandedIds");
|
|
||||||
if (expandedIds != null) {
|
|
||||||
restoreExpandedState(expandedIds);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
private long[] getExpandedIds() {
|
private long[] getExpandedIds() {
|
||||||
ExpandableListView list = getExpandableListView();
|
ExpandableListView list = getExpandableListView();
|
||||||
ExpandableListAdapter adapter = getExpandableListAdapter();
|
ExpandableListAdapter adapter = getExpandableListAdapter();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user