Merge pull request #7565 from osmandapp/EmptyNavigationStartButtonFix

fix route preparation empty start button bug
This commit is contained in:
max-klaus 2019-09-17 10:44:42 +03:00 committed by GitHub
commit b0e88449d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -404,10 +404,10 @@ public class MapRouteInfoMenuFragment extends ContextMenuFragment {
}
ProgressBar progressBarButton = (ProgressBar) view.findViewById(R.id.progress_bar_button);
if (progressBarButton != null) {
progressBarButton.setProgress(isPublicTransportMode() ? 0 : 100);
progressBarButton.setProgress(0);
}
TextViewExProgress textViewExProgress = (TextViewExProgress) view.findViewById(R.id.start_button_descr);
textViewExProgress.percent = isPublicTransportMode() ? 0 : 1;
textViewExProgress.percent = 0;
}
public void show(MapActivity mapActivity) {