opt
This commit is contained in:
@@ -573,13 +573,15 @@ class MogoPrivateObuManager private constructor() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
var maxSpeed = currentLight.glosa_suggested_speed_max.toInt()
|
var maxSpeed = currentLight.glosa_suggested_speed_max.toInt()
|
||||||
mIMoGoWaringProvider!!.showWarningV2X(
|
if (maxSpeed > 0) {
|
||||||
EventTypeEnum.TYPE_USECASE_ID_IVP_GREEN.poiType.toInt(),
|
mIMoGoWaringProvider!!.showWarningV2X(
|
||||||
alertContent,
|
EventTypeEnum.TYPE_USECASE_ID_IVP_GREEN.poiType.toInt(),
|
||||||
ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒
|
alertContent,
|
||||||
appId.toString(),
|
ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒
|
||||||
null
|
appId.toString(),
|
||||||
)
|
null
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 黄灯
|
// 黄灯
|
||||||
0x3 -> {
|
0x3 -> {
|
||||||
|
|||||||
@@ -45,11 +45,12 @@ class ADASStatusIntentHandler implements IntentHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle( Context context, Intent intent ) {
|
public void handle( Context context, Intent intent ) {
|
||||||
|
if ( intent == null ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( MogoReceiver.ACTIION_ADAS.equals( intent.getAction() ) ) {
|
if ( MogoReceiver.ACTIION_ADAS.equals( intent.getAction() ) ) {
|
||||||
if ( intent == null ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
int status = intent.getIntExtra( MogoReceiver.PARAM_ADAS_STATUS, 0 );
|
int status = intent.getIntExtra( MogoReceiver.PARAM_ADAS_STATUS, 0 );
|
||||||
MarkerServiceHandler.getMogoStatusManager().setADASUIShow( ServiceConst.TYPE, status == 1 );
|
MarkerServiceHandler.getMogoStatusManager().setADASUIShow( ServiceConst.TYPE, status == 1 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user