Fixed bug when user changes routing parameter and racalculation of route doesn't occur.

This commit is contained in:
unknown 2014-07-08 16:49:20 +03:00
parent 25a1910829
commit 27d6a02006

View file

@ -296,9 +296,9 @@ public class MapRoutePreferencesControl extends MapControls {
//if short way that it should set valut to fast mode opposite of current //if short way that it should set valut to fast mode opposite of current
if (rp.routingParameter != null && rp.routingParameter.getId().equals("short_way")){ if (rp.routingParameter != null && rp.routingParameter.getId().equals("short_way")){
settings.FAST_ROUTE_MODE.set(!isChecked); settings.FAST_ROUTE_MODE.set(!isChecked);
} else {
rp.setSelected(settings, isChecked);
} }
rp.setSelected(settings, isChecked);
if(rp instanceof OtherLocalRoutingParameter) { if(rp instanceof OtherLocalRoutingParameter) {
updateGpxRoutingParameter((OtherLocalRoutingParameter) rp); updateGpxRoutingParameter((OtherLocalRoutingParameter) rp);
} }