diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/fatigue/V2XFatigueDrivingWindow.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/fatigue/V2XFatigueDrivingWindow.java index 9ce5a57e2b..d1901c1fd4 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/fatigue/V2XFatigueDrivingWindow.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/fatigue/V2XFatigueDrivingWindow.java @@ -69,6 +69,7 @@ public class V2XFatigueDrivingWindow extends RelativeLayout mTvAddress = findViewById(R.id.tvAddress); mTvAddressDistance = findViewById(R.id.tvAddressDistance); mIvToNav = findViewById(R.id.ivToNav); + V2XServiceManager.getMogoRegisterCenter().registerMogoNaviListener( "test", this ); mIvToNav.setOnClickListener(v -> startNavi()); } @@ -118,6 +119,7 @@ public class V2XFatigueDrivingWindow extends RelativeLayout handlerV2XEvent.removeCallbacks(runnableV2XEvent); runnableV2XEvent = null; } + //移除窗体 V2XServiceManager .getMogoTopViewManager() @@ -155,6 +157,7 @@ public class V2XFatigueDrivingWindow extends RelativeLayout @Override public void onCalculateSuccess() { + V2XServiceManager.getMogoRegisterCenter().unregisterMogoNaviListener( "test"); V2XServiceManager.getNavi().startNavi(true); } diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_fatigue_driving_data.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_fatigue_driving_data.json index afd2eec4c8..e547da75f3 100644 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_fatigue_driving_data.json +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_fatigue_driving_data.json @@ -14,9 +14,11 @@ "zoom": true, "zoomScale": 15, "location": { - "lat": 39.9554100000, - "lon": 116.4178276100 + "lat": 39.951326, + "lon": 116.343487 }, + "lat": 39.951326, + "lon": 116.343487, "userHead": "https://yycp-static-1255510688.cos.ap-beijing.myqcloud.com/defaultUserHeadImg/5.png", "msgImgUrl": "https://upload.jianshu.io/users/upload_avatars/7663825/7c28763e-002b-4e89-8dea-5b8da210ef2c.jpg" } \ No newline at end of file