隱身榜單修改
This commit is contained in:
parent
a5826b2dc3
commit
362dff002f
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user