隱身榜單修改

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,6 +319,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
this.outRankHide = outRankHide; this.outRankHide = outRankHide;
for (UserBean model : mList) { for (UserBean model : mList) {
for (String hideId : outRankHide) { for (String hideId : outRankHide) {
if (!model.isHide())
model.setHide(TextUtils.equals(model.getId(), hideId)); model.setHide(TextUtils.equals(model.getId(), hideId));
} }
} }
@ -329,6 +330,7 @@ public class UserMoreInfoAdapter extends RefreshAdapter<UserBean> {
public void refreshData(List<UserBean> list) { public void refreshData(List<UserBean> list) {
for (UserBean model : list) { for (UserBean model : list) {
for (String hideId : outRankHide) { for (String hideId : outRankHide) {
if (!model.isHide())
model.setHide(TextUtils.equals(model.getId(), hideId)); model.setHide(TextUtils.equals(model.getId(), hideId));
} }
} }

View File

@ -146,6 +146,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
public void refreshData(List<ListBean> list) { public void refreshData(List<ListBean> list) {
for (ListBean model : list) { for (ListBean model : list) {
for (String hideId : outRankHide) { for (String hideId : outRankHide) {
if (!model.isHide())
model.setHide(TextUtils.equals(model.getUid(), hideId)); model.setHide(TextUtils.equals(model.getUid(), hideId));
} }
} }
@ -630,6 +631,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
this.outRankHide = outRankHide; this.outRankHide = outRankHide;
for (ListBean model : mList) { for (ListBean model : mList) {
for (String hideId : outRankHide) { for (String hideId : outRankHide) {
if (!model.isHide())
model.setHide(TextUtils.equals(model.getUid(), hideId)); model.setHide(TextUtils.equals(model.getUid(), hideId));
} }
} }