Commit ecdc8037 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 3dfd2b49
......@@ -70,7 +70,7 @@ class UserHelper private constructor() {
COMMON_ERROR_CODE_BASIC_PROFILE -> {
// 缺少基础资料
// ToastUtil.show(MintsApplication.getContext(), "缺少基础资料")
LogUtil.d("mcg -->>>> COMMON_ERROR_CODE_BASIC_PROFILE" + AppConfig.basicUserProfileFlag)
// LogUtil.d("mcg -->>>> COMMON_ERROR_CODE_BASIC_PROFILE" + AppConfig.basicUserProfileFlag)
if (AppConfig.basicUserProfileFlag) return
intent = Intent(appContext, BasicUserProfileActivity::class.java)
......
......@@ -196,7 +196,7 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
}
override fun initBasicSuc() {
LogUtil.d("mcg -->>>> initBasicSuc" + true)
// LogUtil.d("mcg -->>>> initBasicSuc" + true)
AppConfig.basicUserProfileFlag = true
ToastUtil.showLong(context, "填写完成")
Handler(Looper.getMainLooper()).postDelayed({
......
......@@ -227,7 +227,13 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
if (isBlur) {
GlideUtils.loadBlurImageView(ctx, path, iv)
} else {
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, defaultImage)
if (UserManager.getInstance().userSex == 2) {
// 用户是女的,看的只有男的
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, R.mipmap.ic_default_avatar_female)
}else{
GlideUtils.loadThumbRound2ImageView(ctx, path, iv, defaultImage)
}
}
}
......
......@@ -8,7 +8,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:layout_marginBottom="56dp"
android:orientation="vertical" />
<View
......
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