formatting

This commit is contained in:
sonora 2018-05-20 09:49:47 +02:00
parent f018c7ec1d
commit 373f1fd83c

View file

@ -914,7 +914,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements
if (TextUtils.isEmpty(categoryName)) {
categoryName = getString(R.string.shared_string_waypoints);
}
SpannableStringBuilder text = new SpannableStringBuilder(categoryName).append(" ").append(String.valueOf(getChildrenCount(groupPosition)));
SpannableStringBuilder text = new SpannableStringBuilder(categoryName).append(" (").append(String.valueOf(getChildrenCount(groupPosition))).append(")");
text.setSpan(new ForegroundColorSpan(AndroidUtils.getColorFromAttr(app, R.attr.wikivoyage_primary_text_color)),
0, categoryName.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
text.setSpan(new ForegroundColorSpan(ContextCompat.getColor(app, R.color.wikivoyage_secondary_text)),