Merge pull request #9769 from osmandapp/fix_9730

Fix_9730
This commit is contained in:
vshcherb 2020-09-08 16:59:09 +02:00 committed by GitHub
commit 1cac52f7d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1575,8 +1575,8 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
} }
setupViaText(mainView); setupViaText(mainView);
FrameLayout viaButton = (FrameLayout) mainView.findViewById(R.id.via_button); FrameLayout viaButton = mainView.findViewById(R.id.via_button);
AndroidUiHelper.updateVisibility(viaButton, isFinishPointFromTrack()); AndroidUiHelper.updateVisibility(viaButton, routeParams == null || isFinishPointFromTrack());
viaButton.setOnClickListener(new OnClickListener() { viaButton.setOnClickListener(new OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {