#endif
{
+ #ifdef SUPPORT_CAT1_HFP_AG_SERV
+ do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT_AUDIO_END, nullptr, 0);
+ #endif
do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT1_AUDIO_STOP, nullptr, 0);
}
}
{
if(MainCallingView::GetInstance()->GetDisplayGroup())
{
- // if(!MainCallingView::GetInstance()->GetDisplayGroup()->IsVisible())
- // {
- // if( volte_voice_state!=2)
- // {
- // do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT1_AUDIO_START, nullptr, 0);
- // }
- // else if( && volte_voice_state()!=1)
- // {
- // do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT1_AUDIO_START, nullptr, 0);
- // }
-
+ #ifdef SUPPORT_CAT1_HFP_AG_SERV
+ if(!MainCallingView::GetInstance()->GetDisplayGroup()->IsVisible())
+ {
- // }
+ if( headset_SCO_Is_connect()==false && volte_voice_state()!=1)
+ {
+ if(volte_voice_state()==2)
+ {
+ do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT1_AUDIO_STOP, nullptr, 0);
+ }
+ do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_CAT1_AUDIO_START, nullptr, 0);
+ }
+ }
+ #endif
+
}
void CallerLogModel::InitPhoneService()
{
WEARABLE_LOGD(HILOG_MODULE_AAFWK, "CallerLogModel::[InitPhoneService]::Init start");
- PhoneServiceInit();
+
PhoneServiceCb serviceFoution;
serviceFoution.callChanged = PhoneChangeStatusCallback;