整理hardcode问题,整理imageUtils工具类
This commit is contained in:
@ -3,7 +3,6 @@ package com.gh.common.util;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
@ -291,7 +290,7 @@ public class CommentUtils {
|
||||
} else {
|
||||
holder.commentUserNameTv.setText(entity.getUser().getName());
|
||||
if (TextUtils.isEmpty(entity.getUser().getIcon())) {
|
||||
holder.commentUserIconDv.setImageURI(Uri.parse("res:///" + R.drawable.user_default_icon_comment));
|
||||
ImageUtils.Companion.display(holder.commentUserIconDv, R.drawable.user_default_icon_comment);
|
||||
} else {
|
||||
ImageUtils.Companion.display(holder.commentUserIconDv, entity.getUser().getIcon());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user