From 37b7704f1c85d03caadb3c0bfcf6c4b13a03bf14 Mon Sep 17 00:00:00 2001 From: "Igor B. Poretsky" Date: Tue, 5 Apr 2016 07:16:35 +0300 Subject: [PATCH] In accessibility mode Back to location map widget is made clickable only when it actually makes sense. --- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index f7434f8ba2..bc6f3a7440 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -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); + } }