1.排麦抱不在房间用户将其移除排麦队列
2.完善资料昵称判空优化
This commit is contained in:
@@ -131,9 +131,7 @@ public class MicQueueDialog extends BaseDialog implements
|
||||
rvMicQueue.addItemDecoration(new ColorDecoration(Color.TRANSPARENT, 0, Utils.dip2px(getContext(), 5), true));
|
||||
|
||||
adapter = new MicQueueAdapter(dataList);
|
||||
adapter.setOnUpMicListener(new MicQueueAdapter.OnUpMicListener() {
|
||||
@Override
|
||||
public void onUpMic(QueuingMicMemeberInfo member, final int itemPos) {
|
||||
adapter.setOnUpMicListener((member, itemPos) -> {
|
||||
long targetUid = member.getUid();
|
||||
if (AvRoomDataManager.get().isOnMic(member.getUid())) {
|
||||
toast("TA已经在麦上了");
|
||||
@@ -144,6 +142,7 @@ public class MicQueueDialog extends BaseDialog implements
|
||||
@Override
|
||||
public void onErrorMsg(String error) {
|
||||
toast(error);
|
||||
MicQueueModel.get().cancelApplyForQueuing(AvRoomDataManager.get().getRoomUid(), targetUid).subscribe();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -152,7 +151,6 @@ public class MicQueueDialog extends BaseDialog implements
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
rvMicQueue.setAdapter(adapter);
|
||||
|
||||
|
@@ -107,7 +107,7 @@ public class AddUserInfoFragment extends BaseFragment
|
||||
public void onClick(View v) {
|
||||
switch (v.getId()) {
|
||||
case R.id.ok_btn:
|
||||
if (TextUtils.isEmpty(tvNick.getText())) {
|
||||
if (TextUtils.isEmpty(tvNick.getText().toString().trim())) {
|
||||
toast("昵称不能为空!");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user