第九章節(jié) ?打造適合電商主界面導(dǎo)航框架 ?入口activity中引導(dǎo)界面結(jié)束 用戶已經(jīng)登陸過@Override
public?void?onLauncherFinish(OnLauncherFinishTag?tag)?{
????switch?(tag)?{
????????case?SIGNED:
????????????Toast.makeText(this,?"啟動(dòng)結(jié)束,用戶登錄了",?Toast.LENGTH_LONG).show();
????????????getSupportDelegate().startWithPop(new?EcBottomDelegate());//進(jìn)入主頁
????????????break;
????????case?NOT_SIGNED://沒有登錄跳到登錄界面
????????????Toast.makeText(this,?"啟動(dòng)結(jié)束,用戶沒登錄",?Toast.LENGTH_LONG).show();
????????????getSupportDelegate().startWithPop(new?SignInDelegate());
????????????break;
????????default:
????????????break;
????}
}
這行代碼沒走getSupportDelegate().startWithPop(new?EcBottomDelegate());//進(jìn)入主頁
上一行的吐司是出來了??但是跳轉(zhuǎn)到主頁卻顯示空白?報(bào)錯(cuò)
E/Fragmentation:?LauncherDelegate's?FragmentManager?is?null,??Please?check?if?LauncherDelegate?is?destroyed!
Android通用框架設(shè)計(jì)與完整電商APP開發(fā)fragmentation 的問題
su轉(zhuǎn)角遇到鬼
2018-05-08 10:54:50