From 300fafd1b94056c1b1686896cb39732907e831b0 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 21 Jul 2013 18:21:50 +0200 Subject: [PATCH] Update spinner --- .../src/net/osmand/plus/activities/MapActivityActions.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index fd2be25f60..4305545097 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -703,10 +703,11 @@ public class MapActivityActions implements DialogProvider { } final Spinner fromSpinner = ((Spinner) view.findViewById(R.id.FromSpinner)); ArrayAdapter fromAdapter = new ArrayAdapter(view.getContext(), - android.R.layout.simple_spinner_dropdown_item, + android.R.layout.simple_spinner_item, fromActions ); fromSpinner.setAdapter(fromAdapter); + fromSpinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); if(style.routeFromMapPoint && mapView != null) { fromSpinner.setSelection(1); } @@ -733,9 +734,10 @@ 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_dropdown_item, + android.R.layout.simple_spinner_item, toActions ); + toAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); toSpinner.setAdapter(toAdapter); return toSpinner; }