In accessibility mode Back to location map widget is made clickable
only when it actually makes sense.
This commit is contained in:
parent
27ca930abd
commit
37b7704f1c
1 changed files with 3 additions and 0 deletions
|
@ -606,6 +606,9 @@ public class MapControlsLayer extends OsmandMapLayer {
|
||||||
}
|
}
|
||||||
boolean visible = !(tracked && rh.isFollowingMode());
|
boolean visible = !(tracked && rh.isFollowingMode());
|
||||||
backToLocationControl.updateVisibility(visible && !dialogOpened);
|
backToLocationControl.updateVisibility(visible && !dialogOpened);
|
||||||
|
if (app.accessibilityEnabled()) {
|
||||||
|
backToLocationControl.iv.setClickable(enabled && visible);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue