第九章节 打造适合电商主界面导航框架 入口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!
相关分类