From e0baef4ae6dfdb9c76f4a4f0215ac5949133a674 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 18 Jul 2013 19:12:22 +0200 Subject: [PATCH] Fix minor issues --- OsmAnd/res/layout/notification.xml | 2 +- .../plus/activities/MapActivityActions.java | 25 ++++++++----------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/OsmAnd/res/layout/notification.xml b/OsmAnd/res/layout/notification.xml index 9fe901e766..7345890252 100644 --- a/OsmAnd/res/layout/notification.xml +++ b/OsmAnd/res/layout/notification.xml @@ -2,7 +2,7 @@ + android:orientation="vertical" android:background="@color/color_black"> fromAdapter = new ArrayAdapter(view.getContext(), - android.R.layout.simple_spinner_item, + android.R.layout.simple_spinner_dropdown_item, fromActions ); fromSpinner.setAdapter(fromAdapter); @@ -733,7 +733,7 @@ public class MapActivityActions implements DialogProvider { } final Spinner toSpinner = ((Spinner) view.findViewById(R.id.ToSpinner)); ArrayAdapter toAdapter = new ArrayAdapter(view.getContext(), - android.R.layout.simple_spinner_item, + android.R.layout.simple_spinner_dropdown_item, toActions ); toSpinner.setAdapter(toAdapter); @@ -1146,6 +1146,15 @@ public class MapActivityActions implements DialogProvider { } } }).reg(); + if (getTargets().getPointToNavigate() != null) { + optionsMenuHelper.item(R.string.target_points).icons(R.drawable.ic_action_flage_dark, R.drawable.ic_action_flage_light) + .listen(new OnContextMenuClick() { + @Override + public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) { + openIntermediatePointsDialog(); + } + }).reg(); + } if (mapActivity.getPointToNavigate() != null) { int nav; if(routingHelper.isFollowingMode()) { @@ -1213,18 +1222,6 @@ public class MapActivityActions implements DialogProvider { mapActivity.startActivity(newIntent); } }).reg(); - - // 10-11 Waypoints, Use location - if (getTargets().getPointToNavigate() != null) { - optionsMenuHelper.item(R.string.target_points).icons(R.drawable.ic_action_flage_dark, - R.drawable.ic_action_flage_light) - .listen(new OnContextMenuClick() { - @Override - public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) { - openIntermediatePointsDialog(); - } - }).reg(); - } optionsMenuHelper.item(R.string.show_point_options).icons(R.drawable.ic_action_marker_dark, R.drawable.ic_action_marker_light ) .listen(new OnContextMenuClick() { @Override