Review
This commit is contained in:
parent
44e7bf18df
commit
175f937319
1 changed files with 19 additions and 21 deletions
|
@ -82,10 +82,8 @@ public class TrackEditCard extends BaseCard {
|
||||||
}
|
}
|
||||||
GpxUiHelper.updateGpxInfoView(view, title, gpxInfo, dataItem, false, app);
|
GpxUiHelper.updateGpxInfoView(view, title, gpxInfo, dataItem, false, app);
|
||||||
|
|
||||||
if (gpxFile.getNonEmptySegmentsCount() > 1)
|
if (gpxFile.getNonEmptySegmentsCount() > 1 && routeParams != null)
|
||||||
if (routeParams != null)
|
if (routeParams.getSelectedSegment() != -1 && gpxFile.getNonEmptySegmentsCount() > routeParams.getSelectedSegment()) {
|
||||||
if (routeParams.getSelectedSegment() != -1)
|
|
||||||
if (gpxFile.getNonEmptySegmentsCount() > routeParams.getSelectedSegment()) {
|
|
||||||
TextView distanceView = view.findViewById(R.id.distance);
|
TextView distanceView = view.findViewById(R.id.distance);
|
||||||
TextView timeView = view.findViewById(R.id.time);
|
TextView timeView = view.findViewById(R.id.time);
|
||||||
ImageView timeIcon = view.findViewById(R.id.time_icon);
|
ImageView timeIcon = view.findViewById(R.id.time_icon);
|
||||||
|
|
Loading…
Reference in a new issue