From 43da6691e3343ee8d4f034ce8be58cb353dacf6e Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 29 Nov 2015 14:08:43 +0100 Subject: [PATCH] Update SelectedGPXFragment.java --- OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java index d016ded461..ac87ee734e 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/SelectedGPXFragment.java @@ -335,7 +335,7 @@ public class SelectedGPXFragment extends OsmAndListFragment { public void onClick(DialogInterface dialog, int which) { SelectedGpxFile sf = app.getSelectedGpxHelper().selectGpxFile(getGpx(), vis.isChecked(), false); int clr = list.get(colorSpinner.getSelectedItemPosition()); - if(clr != null && clr != 0 && sf.getModifiableGpxFile() != null) { + if(clr != 0 && sf.getModifiableGpxFile() != null) { sf.getModifiableGpxFile().setColor(clr); sf.processPoints(); }