From b975e5864f2bef0483db44e225425dcce8824b0c Mon Sep 17 00:00:00 2001 From: hch <16607480311@163.com> Date: Thu, 28 Mar 2024 15:49:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E4=BF=AE=E5=A4=8D-=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5-=E5=8A=A8=E6=80=81=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/adapter/UserCommunityAdapter.java | 2 ++ common/src/main/res/layout/activity_user_community_item.xml | 2 +- .../main/java/com/yunbao/main/activity/UserHomeActivity.java | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java index 5e58c426e..70ef56e51 100644 --- a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java @@ -117,6 +117,8 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { more_del.setTag(bean); if (isMe) { more_del.setVisibility(View.VISIBLE); + } else { + more_del.setVisibility(View.INVISIBLE); } ImgLoader.display(mContext, bean.getUser_avatar(), mAvatar); userName.setText(bean.getUser_name()); diff --git a/common/src/main/res/layout/activity_user_community_item.xml b/common/src/main/res/layout/activity_user_community_item.xml index 881e7f952..0c22f04af 100644 --- a/common/src/main/res/layout/activity_user_community_item.xml +++ b/common/src/main/res/layout/activity_user_community_item.xml @@ -56,7 +56,7 @@ android:layout_height="30dp" android:padding="4dp" android:src="@mipmap/icon_active_more" - android:visibility="invisible" /> + android:visibility="visible" /> diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index d66be944e..db1c41fab 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -178,7 +178,6 @@ public class UserHomeActivity extends AbsActivity { } initView(); getUseData(); - getCommunityList(); } private void getCommunityList() { @@ -447,6 +446,7 @@ public class UserHomeActivity extends AbsActivity { } }); mBanner.start(); + getCommunityList(); } private void initView() {