opt
This commit is contained in:
@@ -8,6 +8,7 @@ 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;
|
||||
import com.mogo.utils.LaunchUtils;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -28,11 +29,11 @@ public class InternalFunctionLauncher extends BaseAppLauncher {
|
||||
switch ( appInfo.getPackageName() ) {
|
||||
case "com.mogo.launcher.navi.search":
|
||||
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 );
|
||||
try {
|
||||
LaunchUtils.launchByPkg( context, "com.autonavi.amapauto" );
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
AppServiceHandler.getApis().getSearchManagerApi().showSearch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user