Enter comment to explain freeing of direction arrows with Accessibility mode = ON

This commit is contained in:
sonora 2015-01-05 09:37:45 +01:00
parent 5934bf0869
commit b160f6d174

View file

@ -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);