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) {
GroupHeader groupHeader = (GroupHeader) header;
headerString = groupHeader.getGroupName().concat(" - ")
.concat(Integer.toString(groupHeader.getActiveMarkersCount()))
.concat("/")
.concat(Integer.toString(groupHeader.getActiveMarkersCount() + groupHeader.getHistoryMarkersCount()));
headerString = groupHeader.getGroupName() + " - "
+ groupHeader.getActiveMarkersCount()
+ "/" + (groupHeader.getActiveMarkersCount() + groupHeader.getHistoryMarkersCount());
headerViewHolder.icon.setVisibility(View.VISIBLE);
headerViewHolder.iconSpace.setVisibility(View.GONE);
headerViewHolder.icon.setImageDrawable(iconsCache.getThemedIcon(groupHeader.getIconRes()));