From d1435a5024293bc614a0fd78edea4a24d0b7f6af Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 10 Mar 2015 01:22:08 +0100 Subject: [PATCH] Disable current track without plugin --- OsmAnd/src/net/osmand/plus/monitoring/DashTrackFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/monitoring/DashTrackFragment.java b/OsmAnd/src/net/osmand/plus/monitoring/DashTrackFragment.java index 28ab8e40e2..9559201556 100644 --- a/OsmAnd/src/net/osmand/plus/monitoring/DashTrackFragment.java +++ b/OsmAnd/src/net/osmand/plus/monitoring/DashTrackFragment.java @@ -114,7 +114,8 @@ public class DashTrackFragment extends DashBaseFragment { } } - if (list.size() == 0) { + if (list.size() == 0 && + OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) == null) { (mainView.findViewById(R.id.main_fav)).setVisibility(View.GONE); return; } else {