diff --git a/OsmAnd/res/layout/search_history_list_item.xml b/OsmAnd/res/layout/search_history_list_item.xml index 433f4a9f2f..ed70138882 100644 --- a/OsmAnd/res/layout/search_history_list_item.xml +++ b/OsmAnd/res/layout/search_history_list_item.xml @@ -7,7 +7,7 @@ android:layout_width="80dp" android:layout_height="fill_parent" android:gravity="left" android:textSize="20px"/> + android:layout_height="wrap_content" android:textSize="20px" /> diff --git a/OsmAnd/res/values-ru-rRU/strings.xml b/OsmAnd/res/values-ru-rRU/strings.xml index 6c72c44a94..e6c995adda 100644 --- a/OsmAnd/res/values-ru-rRU/strings.xml +++ b/OsmAnd/res/values-ru-rRU/strings.xml @@ -1,5 +1,11 @@ +Город : {0} + Улица : {0}, {1} + Пересечение улиц : {0} x {1} в {2} + Здание : {0}, {1}, {2} + Переместиться в широта = {0}, долгота= {1} + Избранное Очистить все История Загрузка данных... diff --git a/OsmAnd/src/com/osmand/activities/search/SearchAddressActivity.java b/OsmAnd/src/com/osmand/activities/search/SearchAddressActivity.java index ee6de35fbb..fb80ca28c5 100644 --- a/OsmAnd/src/com/osmand/activities/search/SearchAddressActivity.java +++ b/OsmAnd/src/com/osmand/activities/search/SearchAddressActivity.java @@ -194,17 +194,20 @@ public class SearchAddressActivity extends Activity { } if(inters != null){ l = inters.getLatLon(); + String cityName = postcode != null? postcode.getName() : city.getName(en); historyName = MessageFormat.format(getString(R.string.search_history_int_streets), - street.getName(en), street2.getName(en), city.getName(en)); + street.getName(en), street2.getName(en), cityName); zoom = 16; } } else if (building != null) { l = building.getLocation(); - historyName = MessageFormat.format(getString(R.string.search_history_building), building.getName(en), street.getName(en), city.getName(en)); + String cityName = postcode != null? postcode.getName() : city.getName(en); + historyName = MessageFormat.format(getString(R.string.search_history_building), building.getName(en), street.getName(en), cityName); zoom = 16; } else if (street != null) { l = street.getLocation(); - historyName = MessageFormat.format(getString(R.string.search_history_street), street.getName(en), city.getName(en)); + String cityName = postcode != null? postcode.getName() : city.getName(en); + historyName = MessageFormat.format(getString(R.string.search_history_street), street.getName(en), cityName); zoom = 14; } else if (city != null) { l = city.getLocation(); diff --git a/OsmAnd/src/com/osmand/activities/search/SearchHistoryHelper.java b/OsmAnd/src/com/osmand/activities/search/SearchHistoryHelper.java index 5e1584b770..bf812f33aa 100644 --- a/OsmAnd/src/com/osmand/activities/search/SearchHistoryHelper.java +++ b/OsmAnd/src/com/osmand/activities/search/SearchHistoryHelper.java @@ -114,7 +114,9 @@ public class SearchHistoryHelper { if(i == loadedEntries.size()){ i = -1; } - updateModelAt(model, helper, i); + if (i != 0) { + updateModelAt(model, helper, i); + } helper.close(); return model; }