fix bug
This commit is contained in:
@@ -45,8 +45,9 @@ public class AppsPresenter extends Presenter<AppsView> {
|
||||
super(view);
|
||||
mCardManager = (IMogoCardManager) ARouter.getInstance().build(MogoServicePaths.PATH_CARD_MANAGER).navigation(getContext());
|
||||
CardAppLauncher cardAppLauncher = new CardAppLauncher(this, mCardManager);
|
||||
cardAppLauncher.setNext(new GuideShowLauncher());
|
||||
cardAppLauncher.setNext(new AppLauncher());
|
||||
GuideShowLauncher guideShowLauncher = new GuideShowLauncher();
|
||||
cardAppLauncher.setNext(guideShowLauncher);
|
||||
guideShowLauncher.setNext(new AppLauncher());
|
||||
mLauncher = cardAppLauncher;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ public class CardAppLauncher extends BaseAppLauncher {
|
||||
public void launch( Context context, AppInfo appInfo ) {
|
||||
if ( sCardApps.containsKey( appInfo.getPackageName() ) ) {
|
||||
mCardManager.switch2( sCardApps.get( appInfo.getPackageName() ) );
|
||||
mAppsPresenter.exit();
|
||||
} else {
|
||||
|
||||
} else { mAppsPresenter.exit();
|
||||
if ( getNext() != null ) {
|
||||
getNext().launch( context, appInfo );
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.mogo.module.apps.applaunch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.module.apps.AppServiceHandler;
|
||||
@@ -16,7 +17,7 @@ public class GuideShowLauncher extends BaseAppLauncher {
|
||||
@Override
|
||||
public void launch(Context context, AppInfo appInfo) {
|
||||
if (appInfo != null && APP_INFO_NAME_GUIDE_SHOW.equals(appInfo.getName())) {
|
||||
AppServiceHandler.getMogoGuideShow().playGuideVideo((s) -> {
|
||||
AppServiceHandler.getMogoGuideShow().playGuideVideo((Activity) context,(s) -> {
|
||||
Logger.d(TAG, s);
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user