Fix #4168
This commit is contained in:
parent
7fef85273c
commit
7444b823d9
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue