Small fixes

This commit is contained in:
Vitaliy 2021-03-21 17:25:58 +02:00
parent ca6c7f096f
commit fcd2eed652
2 changed files with 7 additions and 7 deletions

View file

@ -571,7 +571,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
if (savedInstanceState == null) {
if (fileName != null) {
addNewGpxData(getGpxFile(fileName));
} else if (editingCtx.isApproximationNeeded() && isFollowTrackMode() && showSnapWarning) {
} else if (editingCtx.isApproximationNeeded() && isFollowTrackMode() && isShowSnapWarning()) {
enterApproximationMode(mapActivity);
}
} else {

View file

@ -57,8 +57,8 @@ import net.osmand.plus.routepreparationmenu.cards.ReverseTrackCard;
import net.osmand.plus.routepreparationmenu.cards.SelectTrackCard;
import net.osmand.plus.routepreparationmenu.cards.TrackEditCard;
import net.osmand.plus.routepreparationmenu.cards.TracksToFollowCard;
import net.osmand.plus.routing.IRouteInformationListener;
import net.osmand.plus.routing.GPXRouteParams.GPXRouteParamsBuilder;
import net.osmand.plus.routing.IRouteInformationListener;
import net.osmand.plus.routing.RouteService;
import net.osmand.plus.routing.RoutingHelper;
import net.osmand.plus.settings.backend.ApplicationMode;
@ -452,7 +452,6 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
} else if (card instanceof TrackEditCard) {
openPlanRoute(false);
close();
}
} else if (card instanceof SelectTrackCard) {
updateSelectionMode(true);
} else if (card instanceof ReverseTrackCard
@ -460,6 +459,7 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
updateMenu();
}
}
}
@Override
public void onCardButtonPressed(@NonNull BaseCard card, int buttonIndex) {