第九章节 打造适合电商主界面导航框架 入口activity中引导界面结束 用户已经登陆过@Override
public void onLauncherFinish(OnLauncherFinishTag tag) {
switch (tag) {
case SIGNED:
Toast.makeText(this, "启动结束,用户登录了", Toast.LENGTH_LONG).show();
getSupportDelegate().startWithPop(new EcBottomDelegate());//进入主页
break;
case NOT_SIGNED://没有登录跳到登录界面
Toast.makeText(this, "启动结束,用户没登录", Toast.LENGTH_LONG).show();
getSupportDelegate().startWithPop(new SignInDelegate());
break;
default:
break;
}
}
这行代码没走getSupportDelegate().startWithPop(new EcBottomDelegate());//进入主页
上一行的吐司是出来了 但是跳转到主页却显示空白 报错
E/Fragmentation: LauncherDelegate's FragmentManager is null, Please check if LauncherDelegate is destroyed!
目前暂无任何回答
- 0 回答
- 0 关注
- 9361 浏览
添加回答
举报
0/150
提交
取消