diff --git a/OsmAnd/res/layout/route_steps_main.xml b/OsmAnd/res/layout/route_steps_main.xml index e190edb644..3faad7fd6e 100644 --- a/OsmAnd/res/layout/route_steps_main.xml +++ b/OsmAnd/res/layout/route_steps_main.xml @@ -24,7 +24,8 @@ + android:choiceMode="singleChoice" + style="@style/OsmandListView"/> \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java index 9122e8671c..3ba36b3e77 100644 --- a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java +++ b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java @@ -131,6 +131,7 @@ public class RoutePointsActivity extends OsmandListActivity { super.onListItemClick(l, v, position, id); RoutePoint rp = adapter.getItem(position); getSherlock().startActionMode(getPointActionModeCallback(rp)); + adapter.notifyDataSetChanged(); } private class PointItemAdapter extends ArrayAdapter { @@ -239,7 +240,7 @@ public class RoutePointsActivity extends OsmandListActivity { @Override public void onDestroyActionMode(ActionMode actionMode) { - + adapter.notifyDataSetChanged(); } }; @@ -287,6 +288,7 @@ public class RoutePointsActivity extends OsmandListActivity { @Override public void onDestroyActionMode(ActionMode actionMode) { selectedItem = null; + adapter.notifyDataSetChanged(); } }; } diff --git a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsPlugin.java b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsPlugin.java index 77a40a4d7b..61531d32bb 100644 --- a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsPlugin.java @@ -101,7 +101,6 @@ public class RoutePointsPlugin extends OsmandPlugin { @Override public void updateLayers(OsmandMapTileView mapView, MapActivity activity) { - if (routeStepsControl == null) { registerWidget(activity); }