linkedme跳转处理逻辑优化
This commit is contained in:
@@ -498,6 +498,10 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
||||||
userLivingView.start();
|
userLivingView.start();
|
||||||
}
|
}
|
||||||
|
//这里是为了处理APP后台运行的情况下点击分享房间等LinkedMe链接的情况
|
||||||
|
if (UserModel.get().getCacheLoginUserInfo() != null) {
|
||||||
|
handleLinkedJump();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -41,11 +41,11 @@ public class SplashActivity extends BaseActivity implements View.OnClickListener
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
NimMiddleActivity.delayOpenCommunity = true;
|
NimMiddleActivity.delayOpenCommunity = true;
|
||||||
|
LinkedME.getInstance().setImmediate(true);
|
||||||
//修复 https://blog.csdn.net/u011153817/article/details/77335255
|
//修复 https://blog.csdn.net/u011153817/article/details/77335255
|
||||||
// https://blog.csdn.net/zhangcanyan/article/details/52777265 这样的启动异常问题.
|
// https://blog.csdn.net/zhangcanyan/article/details/52777265 这样的启动异常问题.
|
||||||
if (!isTaskRoot()) {
|
if (!isTaskRoot()) {
|
||||||
finish();
|
MainActivity.start(SplashActivity.this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,11 +104,6 @@ public class SplashActivity extends BaseActivity implements View.OnClickListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onResume() {
|
|
||||||
super.onResume();
|
|
||||||
LinkedME.getInstance().setImmediate(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private volatile boolean needJump = false;
|
private volatile boolean needJump = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user