fix:修复Android9下观众列表不显示问题
fix:修复守护权益列表数组下标异常问题 update:根据需求调整购买守护 update:快捷语右移一点
This commit is contained in:
@@ -239,10 +239,12 @@ public class LiveNewGuardBuyDialogFragment extends AbsDialogFragment implements
|
||||
bean.setChecked(false);
|
||||
}
|
||||
for (int i : guardBuyBean.getPrivilege()) {
|
||||
mRightList.get(i).setChecked(true);
|
||||
if(i<mRightList.size()) {
|
||||
mRightList.get(i).setChecked(true);
|
||||
}
|
||||
}
|
||||
mGuardRightAdapter.notifyDataSetChanged();
|
||||
mBtnBuy.setEnabled(mCoinVal >= guardBuyBean.getCoin());
|
||||
// mBtnBuy.setEnabled(mCoinVal >= guardBuyBean.getCoin());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -783,11 +783,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
if (mLiveUserAdapter != null) {
|
||||
JSONObject obj = JSON.parseObject(info[0]);
|
||||
List<LiveUserGiftBean> list = JSON.parseArray(obj.getString("userlist"), LiveUserGiftBean.class);
|
||||
if(list.size()>3){
|
||||
ViewGroup.LayoutParams layoutParams = mUserRecyclerView.getLayoutParams();
|
||||
layoutParams.height=DpUtil.dp2px(100);
|
||||
mUserRecyclerView.setLayoutParams(layoutParams);
|
||||
}
|
||||
mLiveUserAdapter.refreshList(list);
|
||||
}
|
||||
}
|
||||
@@ -1464,7 +1459,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
*/
|
||||
public void setUserList(List<LiveUserGiftBean> list) {
|
||||
if (mLiveUserAdapter != null) {
|
||||
resetUserListWidth(DpUtil.dp2px((Math.min(list.size(), 3)) * 38));
|
||||
//resetUserListWidth(DpUtil.dp2px((Math.min(list.size(), 3)) * 30));
|
||||
mLiveUserAdapter.refreshList(list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user