Replace concat with plus

This commit is contained in:
PavelRatushnyi 2017-09-20 12:35:04 +03:00
parent 2443b60263
commit cbe5c3c20f

View file

@ -336,10 +336,9 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
} }
} else if (header instanceof GroupHeader) { } else if (header instanceof GroupHeader) {
GroupHeader groupHeader = (GroupHeader) header; GroupHeader groupHeader = (GroupHeader) header;
headerString = groupHeader.getGroupName().concat(" - ") headerString = groupHeader.getGroupName() + " - "
.concat(Integer.toString(groupHeader.getActiveMarkersCount())) + groupHeader.getActiveMarkersCount()
.concat("/") + "/" + (groupHeader.getActiveMarkersCount() + groupHeader.getHistoryMarkersCount());
.concat(Integer.toString(groupHeader.getActiveMarkersCount() + groupHeader.getHistoryMarkersCount()));
headerViewHolder.icon.setVisibility(View.VISIBLE); headerViewHolder.icon.setVisibility(View.VISIBLE);
headerViewHolder.iconSpace.setVisibility(View.GONE); headerViewHolder.iconSpace.setVisibility(View.GONE);
headerViewHolder.icon.setImageDrawable(iconsCache.getThemedIcon(groupHeader.getIconRes())); headerViewHolder.icon.setImageDrawable(iconsCache.getThemedIcon(groupHeader.getIconRes()));