Fix build
This commit is contained in:
parent
ed81bc438c
commit
a354ce2fa0
1 changed files with 13 additions and 13 deletions
|
@ -39,12 +39,10 @@ import com.github.mikephil.charting.data.BarEntry;
|
|||
import com.github.mikephil.charting.data.Entry;
|
||||
import com.github.mikephil.charting.data.LineData;
|
||||
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
|
||||
import com.github.mikephil.charting.formatter.IValueFormatter;
|
||||
import com.github.mikephil.charting.highlight.Highlight;
|
||||
import com.github.mikephil.charting.interfaces.datasets.ILineDataSet;
|
||||
import com.github.mikephil.charting.listener.ChartTouchListener;
|
||||
import com.github.mikephil.charting.listener.OnChartGestureListener;
|
||||
import com.github.mikephil.charting.utils.ViewPortHandler;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.Location;
|
||||
|
@ -99,6 +97,7 @@ public class ShowRouteInfoDialogFragment extends DialogFragment {
|
|||
private ListView listView;
|
||||
private RouteInfoAdapter adapter;
|
||||
private GPXFile gpx;
|
||||
private OrderedLineDataSet slopeDataSet;
|
||||
private OrderedLineDataSet elevationDataSet;
|
||||
private GpxDisplayItem gpxItem;
|
||||
|
||||
|
@ -207,6 +206,7 @@ public class ShowRouteInfoDialogFragment extends DialogFragment {
|
|||
listView.addHeaderView(headerView);
|
||||
}
|
||||
|
||||
if (slopeDataSet != null) {
|
||||
List<Incline> inclines = createInclinesAndAdd100MetersWith0Incline(slopeDataSet.getValues());
|
||||
|
||||
RouteStatistics routeStatistics = RouteStatistics.newRouteStatistic(helper.getRoute().getOriginalRoute());
|
||||
|
@ -218,6 +218,7 @@ public class ShowRouteInfoDialogFragment extends DialogFragment {
|
|||
R.id.route_smoothness_stat_items, routeStatistics.getRouteSmoothnessStatistic());
|
||||
buildChartAndAttachLegend(app, view, inflater, R.id.route_steepness_stat_chart,
|
||||
R.id.route_steepness_stat_items, routeStatistics.getRouteSteepnessStatistic(inclines));
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
|
@ -341,7 +342,6 @@ public class ShowRouteInfoDialogFragment extends DialogFragment {
|
|||
});
|
||||
|
||||
GPXTrackAnalysis analysis = gpx.getAnalysis(0);
|
||||
OrderedLineDataSet slopeDataSet;
|
||||
if (analysis.hasElevationData) {
|
||||
List<ILineDataSet> dataSets = new ArrayList<>();
|
||||
elevationDataSet = GpxUiHelper.createGPXElevationDataSet(app, mChart, analysis,
|
||||
|
|
Loading…
Reference in a new issue