Update SelectedGPXFragment.java

This commit is contained in:
vshcherb 2015-11-29 14:08:43 +01:00
parent 1d5d6430ac
commit 43da6691e3

View file

@ -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();
}