From 462d7177c2b6586d71cf2181c0d5bf62cfca3ef4 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 28 Mar 2024 14:54:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E6=80=A7=E5=88=AB=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/glide/ImgLoader.java | 3 +++ .../java/com/yunbao/main/activity/EditProfileActivity.java | 4 ++-- main/src/main/res/layout/activity_edit_profile.xml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/glide/ImgLoader.java b/common/src/main/java/com/yunbao/common/glide/ImgLoader.java index fdbe5d2b4..ca8c7e939 100644 --- a/common/src/main/java/com/yunbao/common/glide/ImgLoader.java +++ b/common/src/main/java/com/yunbao/common/glide/ImgLoader.java @@ -48,6 +48,9 @@ public class ImgLoader { if (!contextIsExist(context)) { return; } + if(StringUtil.isEmpty(url)){ + return; + } RequestBuilder builder = Glide.with(context) .load(url); diff --git a/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java b/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java index 397125750..47fbc56c8 100644 --- a/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/EditProfileActivity.java @@ -359,7 +359,7 @@ public class EditProfileActivity extends AbsActivity { } else if (i == R.id.btn_sex) { // forwardSex(); - new XPopup.Builder(mContext) + /*new XPopup.Builder(mContext) .asCustom(new UpdateSexPopup(mContext, userModel.getSex(), new UpdateSexPopup.UpdateSexCallBack() { @Override public void onSex(int sex) { @@ -376,7 +376,7 @@ public class EditProfileActivity extends AbsActivity { }); } })) - .show(); + .show();*/ } else if (i == R.id.btn_city) { CountryPicker.newInstance(null, new OnPick() { @Override diff --git a/main/src/main/res/layout/activity_edit_profile.xml b/main/src/main/res/layout/activity_edit_profile.xml index ca8da3d4d..c5c85c28f 100644 --- a/main/src/main/res/layout/activity_edit_profile.xml +++ b/main/src/main/res/layout/activity_edit_profile.xml @@ -204,7 +204,7 @@ android:id="@+id/btn_sex" style="@style/edit_profile_group_not_color" android:onClick="editProfileClick" - android:visibility="gone"> + android:visibility="visible">