From b160f6d17416778cc387f167df4014decf0b8aee Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 5 Jan 2015 09:37:45 +0100 Subject: [PATCH] Enter comment to explain freeing of direction arrows with Accessibility mode = ON --- .../src/net/osmand/plus/activities/search/SearchPOIActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java index bf585e8827..2bef3c618f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchPOIActivity.java @@ -345,6 +345,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa } else if(isSearchByNameFilter() ){ searchFilterLayout.setVisibility(View.VISIBLE); } + //Freeze the direction arrows (reference is constant north) when Accessibility mode = ON, so screen can be read aloud without continuous updates if(!app.accessibilityEnabled()) { app.getLocationProvider().addCompassListener(this); app.getLocationProvider().registerOrUnregisterCompassListener(true);