fixed bug

This commit is contained in:
lixiaopeng
2022-03-25 20:39:50 +08:00
parent 06e0ed2d69
commit 18c720152a
3 changed files with 8 additions and 18 deletions

View File

@@ -9,6 +9,7 @@ import com.mogo.eagle.core.data.config.FunctionBuildConfig;
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotCarConfigListener;
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener;
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotVehicleStateListener;
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotCarConfigListenerManager;
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotIdentifyListenerManager;
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotVehicleStateListenerManager;
import com.mogo.eagle.core.function.call.bindingcar.CallerBindingcarManager;
@@ -30,8 +31,7 @@ import record_cache.RecordPanelOuterClass;
public class MoGoHandAdasMsgManager implements
IMoGoAutopilotIdentifyListener,
IMoGoAutopilotVehicleStateListener,
IMoGoAutopilotCarConfigListener,
OnAdasConnectStatusListener {
IMoGoAutopilotCarConfigListener {
private final String TAG = "AdasEventManager";
@@ -40,6 +40,7 @@ public class MoGoHandAdasMsgManager implements
private MoGoHandAdasMsgManager() {
CallerAutopilotIdentifyListenerManager.INSTANCE.addListener(TAG, this);
CallerAutopilotVehicleStateListenerManager.INSTANCE.addListener(TAG, this);
CallerAutopilotCarConfigListenerManager.INSTANCE.addListener(TAG, this);
}
public static MoGoHandAdasMsgManager getInstance() {
@@ -133,21 +134,11 @@ public class MoGoHandAdasMsgManager implements
@Override
public void onAutopilotCarConfig(@NotNull MessagePad.CarConfigResp carConfigResp) {
// Log.d("liyz", "onAutopilotCarConfig ---------> ");
// if (carConfigResp != null && !TextUtils.isEmpty(carConfigResp.getMacAddress())) {
if (carConfigResp != null && !TextUtils.isEmpty(carConfigResp.getMacAddress())) {
// Log.d("liyz", " carConfigResp.getMacAddress() = " + carConfigResp.getMacAddress());
// if (!isIPCConnect) {
// CallerBindingcarManager.getBindingcarProvider().getBindingcarInfo(carConfigResp.getMacAddress());
// isIPCConnect = true;
// }
// }
// CallerBindingcarManager.getBindingcarProvider().getBindingcarInfo(carConfigResp.getMacAddress());
}
}
@Override
public void onConnectionIPCStatus(int ipcConnectionStatus, String failedMsg) {
// Log.d("liyz", "onConnectionIPCStatus ---------> ipcConnectionStatus = " + ipcConnectionStatus);
// if (ipcConnectionStatus != Constants.IPC_CONNECTION_STATUS.CONNECTED) {
// isIPCConnect = false;
// }
}
}