In accessibility mode Back to location map widget is made clickable

only when it actually makes sense.
This commit is contained in:
Igor B. Poretsky 2016-04-05 07:16:35 +03:00
parent 27ca930abd
commit 37b7704f1c

View file

@ -606,6 +606,9 @@ public class MapControlsLayer extends OsmandMapLayer {
}
boolean visible = !(tracked && rh.isFollowingMode());
backToLocationControl.updateVisibility(visible && !dialogOpened);
if (app.accessibilityEnabled()) {
backToLocationControl.iv.setClickable(enabled && visible);
}
}