Update zoom info

This commit is contained in:
Victor Shcherb 2013-04-01 20:22:59 +02:00
parent 31f1e3a022
commit a3ead13740

View file

@ -204,28 +204,28 @@ public class SearchAddressActivity extends Activity {
} }
String historyName = null; String historyName = null;
String objectName = ""; String objectName = "";
int zoom = 12; int zoom = 14;
if (!Algorithms.isEmpty(street2) && !Algorithms.isEmpty(street)) { if (!Algorithms.isEmpty(street2) && !Algorithms.isEmpty(street)) {
String cityName = !Algorithms.isEmpty(postcode) ? postcode : city; String cityName = !Algorithms.isEmpty(postcode) ? postcode : city;
objectName = street; objectName = street;
historyName = MessageFormat.format(getString(R.string.search_history_int_streets), street, street2, historyName = MessageFormat.format(getString(R.string.search_history_int_streets), street, street2,
cityName); cityName);
zoom = 16; zoom = 17;
} else if (!Algorithms.isEmpty(building)) { } else if (!Algorithms.isEmpty(building)) {
String cityName = !Algorithms.isEmpty(postcode) ? postcode : city; String cityName = !Algorithms.isEmpty(postcode) ? postcode : city;
objectName = street + " " + building; objectName = street + " " + building;
historyName = MessageFormat.format(getString(R.string.search_history_building), building, street, historyName = MessageFormat.format(getString(R.string.search_history_building), building, street,
cityName); cityName);
zoom = 16; zoom = 17;
} else if (!Algorithms.isEmpty(street)) { } else if (!Algorithms.isEmpty(street)) {
String cityName = postcode != null ? postcode : city; String cityName = postcode != null ? postcode : city;
objectName = street; objectName = street;
historyName = MessageFormat.format(getString(R.string.search_history_street), street, cityName); historyName = MessageFormat.format(getString(R.string.search_history_street), street, cityName);
zoom = 15; zoom = 16;
} else if (!Algorithms.isEmpty(city)) { } else if (!Algorithms.isEmpty(city)) {
historyName = MessageFormat.format(getString(R.string.search_history_city), city); historyName = MessageFormat.format(getString(R.string.search_history_city), city);
objectName = city; objectName = city;
zoom = 13; zoom = 14;
} }
if(selectAddressMode){ if(selectAddressMode){
Intent intent = getIntent(); Intent intent = getIntent();