Issue 2774
This commit is contained in:
parent
04944cb44d
commit
e793f0bbdc
2 changed files with 6 additions and 4 deletions
|
@ -9,6 +9,8 @@
|
||||||
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
|
||||||
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
|
||||||
-->
|
-->
|
||||||
|
<string name="shared_string_open_POIs">Open POIs</string>
|
||||||
|
<string name="shared_string_open_24_7">Open 24/7</string>
|
||||||
<string name="storage_directory_card">Memory card</string>
|
<string name="storage_directory_card">Memory card</string>
|
||||||
<string name="coords_format">Coordinate format</string>
|
<string name="coords_format">Coordinate format</string>
|
||||||
<string name="coords_format_descr">Format for the geographical coordinates</string>
|
<string name="coords_format_descr">Format for the geographical coordinates</string>
|
||||||
|
|
|
@ -361,8 +361,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
addFilter(optionsMenu, getString(R.string.shared_string_open).toLowerCase());
|
addFilter(optionsMenu, getString(R.string.shared_string_open_POIs));
|
||||||
addFilter(optionsMenu, "24/7");
|
addFilter(optionsMenu, getString(R.string.shared_string_open_open_24_7));
|
||||||
Map<String, PoiType> poiAdditionals = f.getPoiAdditionals();
|
Map<String, PoiType> poiAdditionals = f.getPoiAdditionals();
|
||||||
if(poiAdditionals != null) {
|
if(poiAdditionals != null) {
|
||||||
TreeMap<String, PoiType> adds = new TreeMap<String, PoiType>();
|
TreeMap<String, PoiType> adds = new TreeMap<String, PoiType>();
|
||||||
|
@ -381,7 +381,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
|
|
||||||
private void addFilter(PopupMenu optionsMenu, final String value) {
|
private void addFilter(PopupMenu optionsMenu, final String value) {
|
||||||
IconsCache iconsCache = getMyApplication().getIconsCache();
|
IconsCache iconsCache = getMyApplication().getIconsCache();
|
||||||
MenuItem item = optionsMenu.getMenu().add(getString(R.string.search_poi_filter) + " " + value)
|
MenuItem item = optionsMenu.getMenu().add(getString(R.string.search_poi_filter) + ": " + value)
|
||||||
.setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_filter_dark));
|
.setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_filter_dark));
|
||||||
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -389,7 +389,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
if(searchFilterLayout.getVisibility() == View.GONE) {
|
if(searchFilterLayout.getVisibility() == View.GONE) {
|
||||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
searchFilterLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
searchFilter.setText((searchFilter.getText().toString() + " " + value).trim());
|
searchFilter.setText((searchFilter.getText().toString() + ": " + value).trim());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue