From d97f756e95702a3221fd934c1b8eb2dd942e8990 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 17 Jan 2015 15:04:26 +0100 Subject: [PATCH] reset for now --- OsmAnd/res/values/strings.xml | 2 +- .../search/SearchBuildingByNameActivity.java | 1 + .../search/SearchCityByNameActivity.java | 17 ++++++++--------- .../search/SearchRegionByNameActivity.java | 1 + .../search/SearchStreet2ByNameActivity.java | 1 + .../search/SearchStreetByNameActivity.java | 1 + 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index af0d0caf00..fed6bd8ce9 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -2038,7 +2038,7 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A POI changing All other tags are preserved Commit - Reset + Clear Filter Delete Save As diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchBuildingByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchBuildingByNameActivity.java index ad8d25e3e4..577f881b4b 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchBuildingByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchBuildingByNameActivity.java @@ -38,6 +38,7 @@ public class SearchBuildingByNameActivity extends SearchByNameAbstractActivity @Override protected void reset() { + //This is really only a "clear input text field", hence do not reset settings here //searchVillagesMode = -1; //osmandSettings.setLastSearchedCity(-1L, "", null); //Issue 2535: Try to reload indexes as workaround // This creates the issue immediately after tapping "Reset", but then going back to the searchAdressFragment screen resets the issue and everything works(!?) - new AsyncTask>() { - @Override - protected List doInBackground(Void... params) { - return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS); - } - }.execute(); - createComparator(); - getInitializeTask(); + //new AsyncTask>() { + // @Override + // protected List doInBackground(Void... params) { + // return getMyApplication().getResourceManager().reloadIndexes(IProgress.EMPTY_PROGRESS); + // } + //}.execute(); super.reset(); } diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchRegionByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchRegionByNameActivity.java index d6b7f54e8f..61a6409190 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchRegionByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchRegionByNameActivity.java @@ -32,6 +32,7 @@ public class SearchRegionByNameActivity extends SearchByNameAbstractActivity