解决小地图加载异常

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-18 17:28:21 +08:00
parent 165b8906ff
commit 8a365f37ea
2 changed files with 12 additions and 8 deletions

View File

@@ -72,13 +72,17 @@ public abstract class MvpActivity< V extends IView, P extends Presenter< V > >
getWindow().getDecorView().postDelayed(new Runnable() {
@Override
public void run() {
if (DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_LENOVO) {
Logger.d(TAG, "启动小智语音");
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.zhidao.speech",
"com.zhidao.speech.MainActivity"));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
try {
if (DebugConfig.getCarMachineType() == DebugConfig.CAR_MACHINE_TYPE_LENOVO) {
Logger.d(TAG, "启动小智语音");
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.zhidao.speech",
"com.zhidao.speech.MainActivity"));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}, 3000);

View File

@@ -106,7 +106,7 @@ public class MainPresenter extends Presenter< MainView > {
public void postLoadModuleMsg() {
Message msg = Message.obtain();
msg.what = MainConstants.MSG_LOAD_MODULES;
mMsgHandler.sendMessageDelayed( msg, 100 );
mMsgHandler.sendMessageDelayed( msg, 500 );
}
public void handleSchemeIntent( Intent intent, boolean isOnNewIntent ) {