Commit f42bd099 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent ecdc8037
......@@ -227,11 +227,11 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
if (isBlur) {
GlideUtils.loadBlurImageView(ctx, path, iv)
} else {
if (UserManager.getInstance().userSex == 2) {
if (UserManager.getInstance().userSex != 1) {
// 用户是女的,看的只有男的
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, R.mipmap.ic_default_avatar_female)
}else{
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, defaultImage)
}else{
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, R.mipmap.ic_default_avatar_female)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment