|  | @@ -232,6 +232,10 @@ public class LiveRoomActivity extends BaseMVPActivity<ActivityLiveroomLayoutBind
 | 
											
												
													
														|  |                  //其他状态的时候需要重新刷新房间信息
 |  |                  //其他状态的时候需要重新刷新房间信息
 | 
											
												
													
														|  |                  isNeedRefresh = true;
 |  |                  isNeedRefresh = true;
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | 
 |  | +            if(status == ConnectionStatus.NETWORK_UNAVAILABLE){
 | 
											
												
													
														|  | 
 |  | +                //网络不可用
 | 
											
												
													
														|  | 
 |  | +                ToastUtil.getInstance().showShort("您的网络已断开,请检查网络~");
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              if (status == ConnectionStatus.SUSPEND) {
 |  |              if (status == ConnectionStatus.SUSPEND) {
 | 
											
												
													
														|  |                  connectStatusIsPaused = true;
 |  |                  connectStatusIsPaused = true;
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
										
											
												
													
														|  | @@ -691,6 +695,14 @@ public class LiveRoomActivity extends BaseMVPActivity<ActivityLiveroomLayoutBind
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    private boolean isOnApplyMic() {
 | 
											
												
													
														|  | 
 |  | +        return currentSeatStatus == LiveRoomMsgConstants.MIC_STATUS_CONNECTING;
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    private boolean isOnMic() {
 | 
											
												
													
														|  | 
 |  | +        return currentSeatStatus == LiveRoomMsgConstants.MIC_STATUS_CONNECT_SUCCESS;
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      private void updateMicIcon(int micStatus) {
 |  |      private void updateMicIcon(int micStatus) {
 | 
											
												
													
														|  |          //主线程更新
 |  |          //主线程更新
 | 
											
												
													
														|  |          iv_mic.post(new Runnable() {
 |  |          iv_mic.post(new Runnable() {
 | 
											
										
											
												
													
														|  | @@ -1137,6 +1149,9 @@ public class LiveRoomActivity extends BaseMVPActivity<ActivityLiveroomLayoutBind
 | 
											
												
													
														|  |          ToastUtil.getInstance().show(this, "直播已结束");
 |  |          ToastUtil.getInstance().show(this, "直播已结束");
 | 
											
												
													
														|  |          this.liveIsFinish = true;
 |  |          this.liveIsFinish = true;
 | 
											
												
													
														|  |          //取消连麦
 |  |          //取消连麦
 | 
											
												
													
														|  | 
 |  | +        if (mMicManagerDialog != null) {
 | 
											
												
													
														|  | 
 |  | +            mMicManagerDialog.dismiss();
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |          handleCloseMicEvent();
 |  |          handleCloseMicEvent();
 | 
											
												
													
														|  |          notifyMicDelAll();
 |  |          notifyMicDelAll();
 | 
											
												
													
														|  |          showLiveStatusView(LIVE_STATUS_IS_OFFLINE);
 |  |          showLiveStatusView(LIVE_STATUS_IS_OFFLINE);
 | 
											
										
											
												
													
														|  | @@ -1249,8 +1264,13 @@ public class LiveRoomActivity extends BaseMVPActivity<ActivityLiveroomLayoutBind
 | 
											
												
													
														|  |          if (isFinishing() || isDestroyed()) {
 |  |          if (isFinishing() || isDestroyed()) {
 | 
											
												
													
														|  |              return;
 |  |              return;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        updateMicIcon(LiveRoomMsgConstants.MIC_STATUS_NORMAL);
 |  | 
 | 
											
												
													
														|  | -        ToastUtil.getInstance().show(LiveRoomActivity.this, getString(R.string.create_refuse_seat_tip));
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (mMicManagerDialog != null) {
 | 
											
												
													
														|  | 
 |  | +            mMicManagerDialog.dismiss();
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        if (isOnApplyMic()) {
 | 
											
												
													
														|  | 
 |  | +            updateMicIcon(LiveRoomMsgConstants.MIC_STATUS_NORMAL);
 | 
											
												
													
														|  | 
 |  | +            ToastUtil.getInstance().show(LiveRoomActivity.this, getString(R.string.create_refuse_seat_tip));
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
										
											
												
													
														|  | @@ -1258,10 +1278,12 @@ public class LiveRoomActivity extends BaseMVPActivity<ActivityLiveroomLayoutBind
 | 
											
												
													
														|  |          if (isFinishing() || isDestroyed()) {
 |  |          if (isFinishing() || isDestroyed()) {
 | 
											
												
													
														|  |              return;
 |  |              return;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        if (presenter != null) {
 |  | 
 | 
											
												
													
														|  | -            presenter.exitMic();
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if (isOnMic()) {
 | 
											
												
													
														|  | 
 |  | +            if (presenter != null) {
 | 
											
												
													
														|  | 
 |  | +                presenter.exitMic();
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  | 
 |  | +            ToastUtil.getInstance().show(LiveRoomActivity.this, getString(R.string.down_mic_by_create_tip));
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        ToastUtil.getInstance().show(LiveRoomActivity.this, getString(R.string.down_mic_by_create_tip));
 |  | 
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 |