rm online car module
This commit is contained in:
@@ -2,10 +2,12 @@ package com.mogo.module.apps.applaunch;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import com.mogo.module.apps.AppServiceHandler;
|
||||
import com.mogo.module.apps.AppsListActivity;
|
||||
import com.mogo.module.apps.model.AppInfo;
|
||||
import com.mogo.module.common.map.CustomNaviInterrupter;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -25,7 +27,15 @@ public class InternalFunctionLauncher extends BaseAppLauncher {
|
||||
public void launch( Context context, AppInfo appInfo ) {
|
||||
switch ( appInfo.getPackageName() ) {
|
||||
case "com.mogo.launcher.navi.search":
|
||||
AppServiceHandler.getApis().getSearchManagerApi().showSearch();
|
||||
if ( CustomNaviInterrupter.getInstance().interrupt() ) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction( "AUTONAVI_STANDARD_BROADCAST_RECV" );
|
||||
intent.putExtra( "KEY_TYPE", 10034 );
|
||||
intent.putExtra( "SOURCE_APP", "Third App" );
|
||||
context.sendBroadcast( intent );
|
||||
} else {
|
||||
AppServiceHandler.getApis().getSearchManagerApi().showSearch();
|
||||
}
|
||||
break;
|
||||
case "com.mogo.launcher.applist":
|
||||
AppsListActivity.start( mActivity );
|
||||
|
||||
Reference in New Issue
Block a user