List sizes in parentheses as always
This commit is contained in:
parent
ff4ed211e6
commit
7ece578af6
3 changed files with 4 additions and 4 deletions
|
@ -1242,8 +1242,8 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
||||||
viaLayout.setVisibility(View.VISIBLE);
|
viaLayout.setVisibility(View.VISIBLE);
|
||||||
viaLayoutDivider.setVisibility(View.VISIBLE);
|
viaLayoutDivider.setVisibility(View.VISIBLE);
|
||||||
((TextView) mainView.findViewById(R.id.ViaView)).setText(via);
|
((TextView) mainView.findViewById(R.id.ViaView)).setText(via);
|
||||||
((TextView) mainView.findViewById(R.id.ViaSubView)).setText(mapActivity.getString(R.string.intermediate_destinations) + ": " +
|
((TextView) mainView.findViewById(R.id.ViaSubView)).setText(mapActivity.getString(R.string.intermediate_destinations) + " (" +
|
||||||
mapActivity.getMyApplication().getTargetPointsHelper().getIntermediatePoints().size());
|
mapActivity.getMyApplication().getTargetPointsHelper().getIntermediatePoints().size()) + ")";
|
||||||
}
|
}
|
||||||
FrameLayout viaButton = (FrameLayout) mainView.findViewById(R.id.via_button);
|
FrameLayout viaButton = (FrameLayout) mainView.findViewById(R.id.via_button);
|
||||||
|
|
||||||
|
|
|
@ -600,7 +600,7 @@ public class WaypointsFragment extends BaseOsmAndFragment implements ObservableS
|
||||||
if (isAdded()) {
|
if (isAdded()) {
|
||||||
final TextViewEx title = (TextViewEx) view.findViewById(R.id.title);
|
final TextViewEx title = (TextViewEx) view.findViewById(R.id.title);
|
||||||
int pointsSize = app.getTargetPointsHelper().getAllPoints().size();
|
int pointsSize = app.getTargetPointsHelper().getAllPoints().size();
|
||||||
String text = getString(R.string.shared_string_target_points) + ": " + (pointsSize != 0 ? pointsSize : 1);
|
String text = getString(R.string.shared_string_target_points) + " (" + (pointsSize != 0 ? pointsSize : 1) + ")";
|
||||||
title.setText(text);
|
title.setText(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,6 +135,6 @@ public class TracksCard extends BaseCard {
|
||||||
}
|
}
|
||||||
|
|
||||||
((TextView) view.findViewById(R.id.gpx_card_title)).setText(
|
((TextView) view.findViewById(R.id.gpx_card_title)).setText(
|
||||||
String.format("%s — %d", app.getString(R.string.tracks_on_map), list.size()));
|
String.format("%s (%d)", app.getString(R.string.tracks_on_map), list.size()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue