This commit is contained in:
wangcongtao
2020-06-10 20:13:24 +08:00
parent b92b4d124f
commit 13ed04e291
2 changed files with 197 additions and 186 deletions

View File

@@ -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();
}