Fix progress text visibility
This commit is contained in:
parent
d8767b2184
commit
5db40cd60a
1 changed files with 3 additions and 4 deletions
|
@ -372,11 +372,10 @@ public class MapRouteInfoMenuFragment extends ContextMenuFragment {
|
|||
}
|
||||
ProgressBar progressBarButton = (ProgressBar) view.findViewById(R.id.progress_bar_button);
|
||||
if (progressBarButton != null) {
|
||||
int visibility = publicTransportMode ? View.GONE : View.VISIBLE;
|
||||
if (progressBarButton.getVisibility() != visibility) {
|
||||
progressBarButton.setVisibility(visibility);
|
||||
if (progressBarButton.getVisibility() != View.VISIBLE) {
|
||||
progressBarButton.setVisibility(View.VISIBLE);
|
||||
}
|
||||
progressBarButton.setProgress(progress);
|
||||
progressBarButton.setProgress(publicTransportMode ? 0 : progress);
|
||||
}
|
||||
TextViewExProgress textViewExProgress = (TextViewExProgress) view.findViewById(R.id.start_button_descr);
|
||||
textViewExProgress.percent = publicTransportMode ? 0 : progress / 100f;
|
||||
|
|
Loading…
Reference in a new issue