Hide back to location control in plan route mode

This commit is contained in:
Alexander Sytnyk 2017-10-10 12:12:26 +03:00
parent d190f7e3b1
commit f2ce21534b

View file

@ -815,7 +815,7 @@ public class MapControlsLayer extends OsmandMapLayer {
backToLocationControl.iv.setContentDescription(mapActivity.getString(R.string.map_widget_back_to_loc));
}
boolean visible = !(tracked && rh.isFollowingMode());
backToLocationControl.updateVisibility(visible && !dialogOpened);
backToLocationControl.updateVisibility(visible && !dialogOpened && !isInPlanRouteMode());
if (app.accessibilityEnabled()) {
backToLocationControl.iv.setClickable(enabled && visible);
}