Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
99aa6135f7
2 changed files with 5 additions and 3 deletions
|
@ -416,7 +416,9 @@ public class MapActivityActions implements DialogProvider {
|
|||
app.getRoutingHelper().setFollowingMode(false);
|
||||
app.getRoutingHelper().setRoutePlanningMode(true);
|
||||
// reset start point
|
||||
if (targets.getPointToStart() == null) {
|
||||
targets.setStartPoint(from, false, fromName);
|
||||
}
|
||||
// then set gpx
|
||||
setGPXRouteParams(gpxFile);
|
||||
// then update start and destination point
|
||||
|
@ -758,7 +760,7 @@ public class MapActivityActions implements DialogProvider {
|
|||
routingHelper.setRoutePlanningMode(false);
|
||||
settings.LAST_ROUTING_APPLICATION_MODE = settings.APPLICATION_MODE.get();
|
||||
settings.APPLICATION_MODE.set(settings.DEFAULT_APPLICATION_MODE.get());
|
||||
getMyApplication().getTargetPointsHelper().clearStartPoint(false);
|
||||
//getMyApplication().getTargetPointsHelper().clearStartPoint(false);
|
||||
mapActivity.updateApplicationModeSettings();
|
||||
mapActivity.getDashboard().clearDeletedPoints();
|
||||
}
|
||||
|
|
|
@ -419,7 +419,7 @@ public class MapContextMenu extends MenuTitleController implements StateChangedL
|
|||
public int getFabIconId() {
|
||||
RoutingHelper routingHelper = mapActivity.getMyApplication().getRoutingHelper();
|
||||
if (routingHelper.isFollowingMode() || routingHelper.isRoutePlanningMode()) {
|
||||
return R.drawable.map_action_flag_dark;
|
||||
return R.drawable.map_action_waypoint;
|
||||
} else {
|
||||
return R.drawable.map_directions;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue