From 1b4833043b9a4eff2f087885269498fd0180cb1f Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Tue, 25 Jul 2017 12:33:22 +0300 Subject: [PATCH] Fix #4168 --- OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java b/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java index 5f1adea768..85e8bdb963 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java @@ -80,9 +80,7 @@ import net.osmand.plus.activities.SettingsActivity; import net.osmand.plus.dialogs.ConfigureMapMenu; import net.osmand.plus.dialogs.ConfigureMapMenu.AppearanceListItem; import net.osmand.plus.dialogs.ConfigureMapMenu.GpxAppearanceAdapter; -import net.osmand.plus.download.ui.LocalIndexesFragment; import net.osmand.plus.monitoring.OsmandMonitoringPlugin; -import net.osmand.plus.rastermaps.OsmandRasterMapsPlugin; import net.osmand.render.RenderingRuleProperty; import net.osmand.render.RenderingRulesStorage; import net.osmand.util.Algorithms; @@ -107,8 +105,8 @@ import static net.osmand.plus.OsmAndFormatter.METERS_IN_ONE_NAUTICALMILE; import static net.osmand.plus.OsmAndFormatter.YARDS_IN_ONE_METER; import static net.osmand.plus.dialogs.ConfigureMapMenu.CURRENT_TRACK_COLOR_ATTR; import static net.osmand.plus.dialogs.ConfigureMapMenu.CURRENT_TRACK_WIDTH_ATTR; -import static net.osmand.plus.download.DownloadActivity.formatMb; import static net.osmand.plus.download.DownloadActivity.formatKb; +import static net.osmand.plus.download.DownloadActivity.formatMb; public class GpxUiHelper { @@ -1416,7 +1414,7 @@ public class GpxUiHelper { } } - if (values == null) { + if (values == null || values.size() == 0) { if (useRightAxis) { yAxis.setEnabled(false); }