From 362dff002f51ea2ba65408ed271e13ee27c2a213 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 21 Sep 2022 15:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=B1=E8=BA=AB=E6=A6=9C=E5=96=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/adapter/UserMoreInfoAdapter.java | 6 ++++-- .../main/java/com/yunbao/main/adapter/MainListAdapter.java | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java b/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java index 651789e1c..6e40da6d6 100644 --- a/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/UserMoreInfoAdapter.java @@ -319,7 +319,8 @@ public class UserMoreInfoAdapter extends RefreshAdapter { this.outRankHide = outRankHide; for (UserBean model : mList) { for (String hideId : outRankHide) { - model.setHide(TextUtils.equals(model.getId(), hideId)); + if (!model.isHide()) + model.setHide(TextUtils.equals(model.getId(), hideId)); } } notifyDataSetChanged(); @@ -329,7 +330,8 @@ public class UserMoreInfoAdapter extends RefreshAdapter { public void refreshData(List list) { for (UserBean model : list) { for (String hideId : outRankHide) { - model.setHide(TextUtils.equals(model.getId(), hideId)); + if (!model.isHide()) + model.setHide(TextUtils.equals(model.getId(), hideId)); } } super.refreshData(list); diff --git a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java index 4ba550139..6f8522cd8 100644 --- a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java +++ b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java @@ -146,7 +146,8 @@ public class MainListAdapter extends RefreshAdapter { public void refreshData(List list) { for (ListBean model : list) { for (String hideId : outRankHide) { - model.setHide(TextUtils.equals(model.getUid(), hideId)); + if (!model.isHide()) + model.setHide(TextUtils.equals(model.getUid(), hideId)); } } mTopList.clear(); @@ -630,7 +631,8 @@ public class MainListAdapter extends RefreshAdapter { this.outRankHide = outRankHide; for (ListBean model : mList) { for (String hideId : outRankHide) { - model.setHide(TextUtils.equals(model.getUid(), hideId)); + if (!model.isHide()) + model.setHide(TextUtils.equals(model.getUid(), hideId)); } } notifyDataSetChanged();