修复友盟推送初始化异常,ImageUtils代码转换kotlin
This commit is contained in:
@ -158,13 +158,13 @@ public class CommentDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
|
||||
if (mUserName != null && mUserIcon != null && !mUserIcon.isEmpty() &&
|
||||
!mUserIcon.isEmpty() && mCommentDao.isMyComment(commentEntity.getId())) {
|
||||
holder.commentUserNameTv.setText(mSharedPreferences.getString("user_name", null));
|
||||
ImageUtils.display(holder.commentUserIconDv, mSharedPreferences.getString("user_icon", null));
|
||||
ImageUtils.Companion.display(holder.commentUserIconDv, mSharedPreferences.getString("user_icon", null));
|
||||
} else {
|
||||
holder.commentUserNameTv.setText(commentEntity.getUser().getName());
|
||||
if (commentEntity.getUser().getIcon().isEmpty()) {
|
||||
holder.commentUserIconDv.setImageURI(Uri.parse("res:///" + R.drawable.user_default_icon_comment));
|
||||
} else {
|
||||
ImageUtils.display(holder.commentUserIconDv, commentEntity.getUser().getIcon());
|
||||
ImageUtils.Companion.display(holder.commentUserIconDv, commentEntity.getUser().getIcon());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user