PK模式中不隐藏排麦按钮,点击弹toast

This commit is contained in:
huangjian
2020-12-19 16:55:26 +08:00
parent ff347bb8ad
commit ab3941e53f
2 changed files with 6 additions and 3 deletions

View File

@@ -2021,6 +2021,10 @@ public class HomePartyRoomFragment extends BaseMvpFragment<IHomePartyView, HomeP
@Override
public void onShowPKMicQueueDialog() {
if (PkModel.get().isFighting()){
SingleToastUtil.showToast("PK已开始暂时无法排麦");
return;
}
pkMicQueueDialog = new PKMicQueueDialog(mContext);
pkMicQueueDialog.setActionListener(new PKMicQueueDialog.OnActionListener() {
@Override

View File

@@ -213,10 +213,9 @@ public class BottomView extends RelativeLayout implements View.OnClickListener {
iconMicQueue.setVisibility(GONE);
return;
}
//排麦模式或PK模式非进行中展示排麦麦按钮
//排麦模式或PK模式展示排麦麦按钮
iconMicQueue.setVisibility((AvRoomDataManager.get().isQueuingMicro() || AvRoomDataManager.get().isOpenPKMode()) &&
!AvRoomDataManager.get().isCpRoom() &&
!PkModel.get().isFighting() ? VISIBLE : GONE);
!AvRoomDataManager.get().isCpRoom()? VISIBLE : GONE);
}
public void setQueuingMicButtonBackground(boolean isEmpty) {