From 2e5a3edfbe690ed30a407e0b68db1e1b591d33bc Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 17 Jun 2015 03:53:58 +0200 Subject: [PATCH] add gpx track default color --- OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java index 18a5bc3c90..a3cbdc6ef1 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java @@ -271,8 +271,8 @@ public class SelectedGPXFragment extends OsmAndListFragment { final TIntArrayList list = new TIntArrayList(); final Spinner colorSpinner = (Spinner) view.findViewById(R.id.ColorSpinner); - ColorDialogs.setupColorSpinner(getActivity(), getGpx().getColor(R.color.gpx_track), colorSpinner, list); - + //ColorDialogs.setupColorSpinner(getActivity(), getGpx().getColor(0), colorSpinner, list); + ColorDialogs.setupColorSpinner(getActivity(), getMyActivity().getResources().getColor(R.color.gpx_track), colorSpinner, list); final Spinner sp = (Spinner) view.findViewById(R.id.Spinner); Builder bld = new AlertDialog.Builder(getMyActivity());