From e793f0bbdc75bdf9a402fd75a4b586c59eb7a224 Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 4 Jul 2016 21:44:07 +0200 Subject: [PATCH] Issue 2774 --- OsmAnd/res/values/strings.xml | 2 ++ .../osmand/plus/activities/search/SearchPOIActivity.java | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 1c422a6d71..bbe400cae9 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,8 @@ 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 --> + Open POIs + Open 24/7 Memory card Coordinate format Format for the geographical coordinates diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index be24b0b1e6..d2742a2945 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -361,8 +361,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa return true; } }); - addFilter(optionsMenu, getString(R.string.shared_string_open).toLowerCase()); - addFilter(optionsMenu, "24/7"); + addFilter(optionsMenu, getString(R.string.shared_string_open_POIs)); + addFilter(optionsMenu, getString(R.string.shared_string_open_open_24_7)); Map poiAdditionals = f.getPoiAdditionals(); if(poiAdditionals != null) { TreeMap adds = new TreeMap(); @@ -381,7 +381,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa private void addFilter(PopupMenu optionsMenu, final String value) { 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)); item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { @Override @@ -389,7 +389,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa if(searchFilterLayout.getVisibility() == View.GONE) { searchFilterLayout.setVisibility(View.VISIBLE); } - searchFilter.setText((searchFilter.getText().toString() + " " + value).trim()); + searchFilter.setText((searchFilter.getText().toString() + ": " + value).trim()); return true; } });