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();