parent
adf79e3b92
commit
04a694a559
1 changed files with 6 additions and 0 deletions
|
@ -507,6 +507,12 @@ public class DashboardOnMap implements ObservableScrollViewCallbacks {
|
||||||
if (visibleType == DashboardType.WAYPOINTS || visibleType == DashboardType.WAYPOINTS_EDIT
|
if (visibleType == DashboardType.WAYPOINTS || visibleType == DashboardType.WAYPOINTS_EDIT
|
||||||
|| force) {
|
|| force) {
|
||||||
updateListAdapter();
|
updateListAdapter();
|
||||||
|
} else if (visibleType == DashboardType.CONFIGURE_MAP) {
|
||||||
|
int index = listView.getFirstVisiblePosition();
|
||||||
|
View v = listView.getChildAt(0);
|
||||||
|
int top = (v == null) ? 0 : (v.getTop() - listView.getPaddingTop());
|
||||||
|
updateListAdapter();
|
||||||
|
listView.setSelectionFromTop(index, top);
|
||||||
} else {
|
} else {
|
||||||
listAdapter.notifyDataSetChanged();
|
listAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue