From a1762bc791b450ea4b1b286de24edc595d3d6096 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sat, 4 Mar 2023 13:40:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=86=E7=A0=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=95=8C=E9=9D=A2=E7=82=B9=E8=BF=94=E5=9B=9E=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=97=B6=E4=BC=9A=E5=9B=9E=E5=88=B0=E6=A1=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20=E4=BC=98=E5=8C=96=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E9=87=8D=E8=BF=9Eim=E6=97=B6=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E5=88=B0=E7=99=BB=E5=BD=95=E4=BF=A1=E6=81=AF=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E5=90=8E=E8=BF=94=E5=9B=9E=E5=88=B0=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/main/activity/LoginActivity.java | 3 ++- .../main/java/com/yunbao/main/activity/MainActivity.java | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/LoginActivity.java b/main/src/main/java/com/yunbao/main/activity/LoginActivity.java index dae7de39c..0709595e3 100644 --- a/main/src/main/java/com/yunbao/main/activity/LoginActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/LoginActivity.java @@ -121,7 +121,8 @@ public class LoginActivity extends AbsActivity { findViewById(R.id.btn_back).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - finish(); + //finish(); + RouteUtil.forwardLauncher(LoginActivity.this); } }); diff --git a/main/src/main/java/com/yunbao/main/activity/MainActivity.java b/main/src/main/java/com/yunbao/main/activity/MainActivity.java index 987edb8f7..3d0d61ddf 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainActivity.java @@ -313,7 +313,12 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene @Override public void onPageSelected(int position) { if(mTabButtonGroup.getCurPosition()!=position){ - System.err.println("重连IM"); + System.err.println("重连IM:"+IMLoginManager.isLogin(mContext)); + if(!IMLoginManager.isLogin(mContext)){ + //IMLoginManager.get(mContext).setupLoginUser(); + RouteUtil.forwardLoginInvalid("登錄失效"); + return; + } RongcloudIMManager.connectIM(mContext.getApplication()); position = 0; mTabButtonGroup.setCurPosition(0);