切换账号登录MQTT未连接修改。
This commit is contained in:
@@ -803,6 +803,7 @@ public class CommonAppContext extends MultiDexApplication implements Application
|
||||
|
||||
if (mqttConnect != null){
|
||||
mqttConnect.close();
|
||||
mqttConnect = null;
|
||||
}
|
||||
|
||||
isLogout = true;
|
||||
|
||||
@@ -506,7 +506,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
// 观察时间变化
|
||||
scope.launch {
|
||||
timer.timeLeft.collect { time ->
|
||||
LogUtils.e("startTimer:" + time)
|
||||
// LogUtils.e("startTimer:" + time)
|
||||
if (time / 1000 <= 10) {
|
||||
mBinding.tvJsq.visibility = View.VISIBLE
|
||||
mBinding.tvJsq.text = (time / 1000).toString()
|
||||
|
||||
@@ -321,17 +321,6 @@ public class PasswordLoginActivity extends BaseMvpActivity<LoginPresenter, Activ
|
||||
|
||||
UserBean userBean = CommonAppContext.getInstance().getUser();
|
||||
|
||||
// TUILogin.login(getBaseContext(), CommonAppContext.getInstance().getCurrentEnvironment().getSdkAppId(), "u"+userBean.getUser_id(), userBean.getTencent_im(), new TUICallback() {
|
||||
// @Override
|
||||
// public void onError(final int code, final String desc) {
|
||||
// LogUtils.e("@@@",code,"描述:",desc);
|
||||
// }
|
||||
// @Override
|
||||
// public void onSuccess() {
|
||||
// LogUtils.e("@@@","成功");
|
||||
//
|
||||
// }
|
||||
// });
|
||||
if (userBean.getSex() == 0) {
|
||||
Intent intent = new Intent(this, ImproveInfoActivity.class);
|
||||
Bundle bundle = new Bundle();
|
||||
|
||||
Reference in New Issue
Block a user