隱身榜單修改

This commit is contained in:
18401019693 2022-09-21 15:08:56 +08:00
parent a5826b2dc3
commit 362dff002f
2 changed files with 8 additions and 4 deletions

View File

@ -319,7 +319,8 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
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<UserBean> {
public void refreshData(List<UserBean> 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);

View File

@ -146,7 +146,8 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
public void refreshData(List<ListBean> 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<ListBean> {
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();