From eb2d75d4ad43caf054297abce4804ede65c8f7a3 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 31 May 2013 17:35:43 +0200 Subject: [PATCH] Fix bugs --- .../net/osmand/plus/activities/search/SearchPOIActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index b38da53fcb..e7af3d140f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -307,6 +307,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa } updateLocation(location); } + app.getLocationProvider().registerOrUnregisterCompassListener(true); } private void showPoiCategoriesByNameFilter(String query, net.osmand.Location loc){ @@ -397,7 +398,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa @Override public void updateLocation(net.osmand.Location location) { - app.getLocationProvider().registerOrUnregisterCompassListener(location != null); boolean handled = false; if (location != null && filter != null) { net.osmand.Location searchedLocation = getSearchedLocation();