From 1f8b1c60c0f1afd0f3e80aa01ecfbdd39a710785 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 19 Jun 2014 23:49:27 +0200 Subject: [PATCH] Fix selection bug --- OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java index fabe8200c5..c679be499c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java @@ -284,7 +284,7 @@ public class MapActivityLayers { adapter.item(R.string.layer_favorites).selected(settings.SHOW_FAVORITES.get() ? 1 : 0) .icons(R.drawable.ic_action_fav_dark, R.drawable.ic_action_fav_light).reg(); adapter.item(R.string.layer_gpx_layer).selected( - getApplication().getSelectedGpxHelper() != null ? 1 : 0) + getApplication().getSelectedGpxHelper().isShowingAnyGpxFiles()? 1 : 0) // .icons(R.drawable.ic_action_foot_dark, R.drawable.ic_action_foot_light) .icons(R.drawable.ic_action_polygom_dark, R.drawable.ic_action_polygom_light) .reg();