Update MainActivity.java

This commit is contained in:
vshcherb 2016-08-13 13:32:33 +02:00 committed by GitHub
parent bc23b66dd3
commit cc648a02fa

View file

@ -264,7 +264,7 @@ public class MainActivity extends Activity {
net.osmand.core.jni.LatLon latLon = Utilities.convert31ToLatLon(target31); net.osmand.core.jni.LatLon latLon = Utilities.convert31ToLatLon(target31);
SearchSettings settings = searchUICore.getPhrase().getSettings().setOriginalLocation( SearchSettings settings = searchUICore.getPhrase().getSettings().setOriginalLocation(
new LatLon(latLon.getLatitude(), latLon.getLongitude())); new LatLon(latLon.getLatitude(), latLon.getLongitude()));
settings = settings.setLang(LANGUAGE); settings = settings.setLang(LANGUAGE, false);
searchUICore.updateSettings(settings); searchUICore.updateSettings(settings);
adapter.setLocation(new LatLon(latLon.getLatitude(), latLon.getLongitude())); adapter.setLocation(new LatLon(latLon.getLatitude(), latLon.getLongitude()));