List sizes in parentheses as always

This commit is contained in:
sonora 2019-03-12 01:11:52 +01:00
parent ff4ed211e6
commit 7ece578af6
3 changed files with 4 additions and 4 deletions

View file

@ -1242,8 +1242,8 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
viaLayout.setVisibility(View.VISIBLE);
viaLayoutDivider.setVisibility(View.VISIBLE);
((TextView) mainView.findViewById(R.id.ViaView)).setText(via);
((TextView) mainView.findViewById(R.id.ViaSubView)).setText(mapActivity.getString(R.string.intermediate_destinations) + ": " +
mapActivity.getMyApplication().getTargetPointsHelper().getIntermediatePoints().size());
((TextView) mainView.findViewById(R.id.ViaSubView)).setText(mapActivity.getString(R.string.intermediate_destinations) + " (" +
mapActivity.getMyApplication().getTargetPointsHelper().getIntermediatePoints().size()) + ")";
}
FrameLayout viaButton = (FrameLayout) mainView.findViewById(R.id.via_button);

View file

@ -600,7 +600,7 @@ public class WaypointsFragment extends BaseOsmAndFragment implements ObservableS
if (isAdded()) {
final TextViewEx title = (TextViewEx) view.findViewById(R.id.title);
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);
}
}

View file

@ -135,6 +135,6 @@ public class TracksCard extends BaseCard {
}
((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()));
}
}