Fix reverse track availability

This commit is contained in:
Vitaliy 2020-09-25 14:41:02 +03:00
parent 41e4654a62
commit db17418c4f

View file

@ -213,7 +213,7 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
GPXRouteParamsBuilder rparams = routingHelper.getCurrentGPXRoute(); GPXRouteParamsBuilder rparams = routingHelper.getCurrentGPXRoute();
boolean osmandRouter = mode.getRouteService() == RouteProvider.RouteService.OSMAND; boolean osmandRouter = mode.getRouteService() == RouteProvider.RouteService.OSMAND;
if (rparams != null && osmandRouter) { if (rparams != null && osmandRouter) {
boolean showReverseCard = !gpxFile.hasRoute() || gpxFile.hasRtePt(); boolean showReverseCard = !routingHelper.isCurrentGPXRouteV2();
if (showReverseCard) { if (showReverseCard) {
cardsContainer.addView(buildDividerView(cardsContainer, false)); cardsContainer.addView(buildDividerView(cardsContainer, false));