private void getCreatorAvatar(GenericViewHolder vh, ActivityEntry item) { String type = item.getType(); String tmp = null; if (type.startsWith(PREFIX_FILE)) { renditionManager.display(vh.icon, item.getCreatedBy(), getFileDrawableId(item)); } else if (type.startsWith(PREFIX_GROUP)) { vh.icon.setImageDrawable(getContext().getResources().getDrawable(getFileDrawableId(item))); } else if (type.startsWith(PREFIX_USER)) { tmp = getData(item, CloudConstant.MEMEBERUSERNAME_VALUE); if (tmp.isEmpty()) { tmp = null; } renditionManager.display(vh.icon, tmp, getFileDrawableId(item)); } else if (type.startsWith(PREFIX_SUBSCRIPTION)) { tmp = getData(item, CloudConstant.FOLLOWERUSERNAME_VALUE); if (tmp.isEmpty()) { tmp = null; } renditionManager.display(vh.icon, tmp, getFileDrawableId(item)); } else { renditionManager.display(vh.icon, item.getCreatedBy(), getFileDrawableId(item)); } }