密码房逻辑更改

This commit is contained in:
18401019693 2022-09-27 11:04:30 +08:00
parent 25252b013b
commit 44c6e5e4cd
4 changed files with 16 additions and 23 deletions

View File

@ -286,7 +286,6 @@ public class LiveAudienceActivity extends LiveActivity {
public void onSuccess(int code, String msg, String[] info) {
if (code == 0 && info.length > 0) {
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
LiveRoomCheckLivePresenter.isRoom = true;
LiveRoomCheckLivePresenter mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, (liveBean1, liveType, liveTypeVal, liveSdk) -> {
//主播正在直播
if (liveBean1 == null) {

View File

@ -269,7 +269,6 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
if (code == 0 && info.length > 0) {
LiveBean liveBean = JSON.parseObject(info[0], LiveBean.class);
if (mCheckLivePresenter == null) {
LiveRoomCheckLivePresenter.isRoom = false;
mCheckLivePresenter = new LiveRoomCheckLivePresenter(mContext, new LiveRoomCheckLivePresenter.ActionListener() {
@Override
public void onLiveRoomChanged(LiveBean liveBean, int liveType, int liveTypeVal, int liveSdk) {

View File

@ -106,7 +106,6 @@ public class LiveRoomCheckLivePresenter {
* 前往密码房间
*/
private void forwardPwdRoom() {
if (!isRoom) {
DialogUitl.showSimpleInputDialog(mContext, WordUtil.getString(R.string.live_input_password), DialogUitl.INPUT_TYPE_NUMBER_PASSWORD, new DialogUitl.SimpleCallback() {
@Override
public void onConfirmClick(Dialog dialog, String content) {
@ -123,10 +122,7 @@ public class LiveRoomCheckLivePresenter {
}
}
});
} else {
enterLiveRoom();
isRoom = false;
}
}

View File

@ -3011,7 +3011,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
* 前往直播间
*/
private void gotoLive(final String liveId) {
LiveRoomCheckLivePresenter.isRoom = false;
LiveHttpUtil.getLiveInfo(liveId, new HttpCallback() {
@Override
public void onSuccess(int code, String msg, String[] info) {