Hide slope axis if no data

This commit is contained in:
Alexey Kulish 2017-03-12 12:37:32 +03:00
parent caa319a48d
commit 698907bc98

View file

@ -1373,6 +1373,9 @@ public class GpxUiHelper {
}
if (values == null) {
if (useRightAxis) {
yAxis.setEnabled(false);
}
return null;
}
@ -1398,6 +1401,9 @@ public class GpxUiHelper {
double SLOPE_PROXIMITY = 150;
if (totalDistance - SLOPE_PROXIMITY < 0) {
if (useRightAxis) {
yAxis.setEnabled(false);
}
return null;
}