diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index a231385751..33386badd1 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -370,8 +370,10 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa } else if(isSearchByNameFilter() ){ searchFilterLayout.setVisibility(View.VISIBLE); } - app.getLocationProvider().addCompassListener(this); - app.getLocationProvider().registerOrUnregisterCompassListener(true); + if(!app.accessibilityEnabled()) { + app.getLocationProvider().addCompassListener(this); + app.getLocationProvider().registerOrUnregisterCompassListener(true); + } searchFilter.requestFocus(); } @@ -549,7 +551,9 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa super.onPause(); if (searchNearBy) { app.getLocationProvider().pauseAllUpdates(); - app.getLocationProvider().removeCompassListener(this); + if(!app.accessibilityEnabled()) { + app.getLocationProvider().removeCompassListener(this); + } app.getLocationProvider().removeLocationListener(this); } } diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java index 775bb0a155..b6f344a872 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoGroupsActivity.java @@ -312,8 +312,10 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements mapLocation = new Location("map"); mapLocation.setLatitude(ml.getLatitude()); mapLocation.setLongitude(ml.getLongitude()); - app.getLocationProvider().addCompassListener(this); - app.getLocationProvider().registerOrUnregisterCompassListener(true); + if(!app.accessibilityEnabled()) { + app.getLocationProvider().addCompassListener(this); + app.getLocationProvider().registerOrUnregisterCompassListener(true); + } app.getLocationProvider().addLocationListener(this); app.getLocationProvider().resumeAllUpdates(); osMoPlugin.getGroups().setUiListener(this); @@ -326,7 +328,9 @@ public class OsMoGroupsActivity extends OsmandExpandableListActivity implements protected void onPause() { super.onPause(); app.getLocationProvider().pauseAllUpdates(); - app.getLocationProvider().removeCompassListener(this); + if(!app.accessibilityEnabled()) { + app.getLocationProvider().removeCompassListener(this); + } app.getLocationProvider().removeLocationListener(this); osMoPlugin.getGroups().setUiListener(null); }