fix correct "Current map center" getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view) init if called from the map screen
This commit is contained in:
parent
c328aef095
commit
dcf7674798
1 changed files with 5 additions and 1 deletions
|
@ -169,10 +169,14 @@ public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo
|
||||||
LatLon l = new LatLon(lat, lon);
|
LatLon l = new LatLon(lat, lon);
|
||||||
if(!Algorithms.objectEquals(reqSearchPoint, l)){
|
if(!Algorithms.objectEquals(reqSearchPoint, l)){
|
||||||
reqSearchPoint = l;
|
reqSearchPoint = l;
|
||||||
|
if (!Algorithms.objectEquals (reqSearchPoint, settings.getLastKnownMapLocation()) {
|
||||||
|
updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " " + getString(R.string.search_position_map_view), false);
|
||||||
|
} else {
|
||||||
updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " ", true);
|
updateSearchPoint(reqSearchPoint, getString(R.string.select_search_position) + " ", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(searchPoint == null){
|
if(searchPoint == null){
|
||||||
LatLon last = settings.getLastKnownMapLocation();
|
LatLon last = settings.getLastKnownMapLocation();
|
||||||
if(!Algorithms.objectEquals(reqSearchPoint, last)){
|
if(!Algorithms.objectEquals(reqSearchPoint, last)){
|
||||||
|
|
Loading…
Reference in a new issue