Final fix #1887 and fix #1804. With saving scroll position.

This commit is contained in:
GaidamakUA 2015-11-19 10:03:08 +02:00
parent adf79e3b92
commit 04a694a559

View file

@ -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();
} }