Enter comment to explain freeing of direction arrows with Accessibility mode = ON
This commit is contained in:
parent
5934bf0869
commit
b160f6d174
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
||||||
} else if(isSearchByNameFilter() ){
|
} else if(isSearchByNameFilter() ){
|
||||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
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()) {
|
if(!app.accessibilityEnabled()) {
|
||||||
app.getLocationProvider().addCompassListener(this);
|
app.getLocationProvider().addCompassListener(this);
|
||||||
app.getLocationProvider().registerOrUnregisterCompassListener(true);
|
app.getLocationProvider().registerOrUnregisterCompassListener(true);
|
||||||
|
|
Loading…
Reference in a new issue