{
OHOS::AlarmClockModel::GetInstance()->testPlayerStart(RING_MUSIC);
- //g_audioState = AUDIO_ACT_INTERRUPT_WATCH_RING;
+ //g_audioState = AUDIO_ACT_INTERRUPT_WATCH_RING;
}
}
if (state == HFP_HF_CALL_STATE_INCOMING || state == HFP_HF_CALL_STATE_DIALING ||
state == HFP_HF_CALL_STATE_ALERTING) { // 电话呼入,支持播放手机铃声
- if (call->in_band_ring) {
+ if (call->in_band_ring && state != HFP_HF_CALL_STATE_INCOMING) {
{
// 播放手机端铃声
PostGraphicEvent(AudioDn);
if(OHOS::GoalView::GetInstance())
{
- OHOS::GoalView::GetInstance()->GoalViewrefresh();
+ GraphicService::GetInstance()->PostGraphicEvent(
+ std::bind(&OHOS::GoalView::GoalViewrefresh, OHOS::GoalView::GetInstance() ));
+
+ // OHOS::GoalView::GetInstance()->GoalViewrefresh();
}
if(OHOS::GoalotherView::GetInstance())
{
- OHOS::GoalotherView::GetInstance()->GoalViewrefresh();
+ //OHOS::GoalotherView::GetInstance()->GoalViewrefresh();
+ GraphicService::GetInstance()->PostGraphicEvent(
+ std::bind(&OHOS::GoalotherView::GoalViewrefresh, OHOS::GoalotherView::GetInstance() ));
}
if(OHOS::GoalModel::GetInstance().getstepvalue()>=100)
DisableCallTimer(CallTimerType::NOTIFY_PHONE_DIAL_DISPLAY);
}
-void cat1_phone_state_change_cb(uint8_t state)
+void using_cat1_phone_state_change_cb(uint8_t state)
{
- g_callOperate = state;
+ g_callOperate = state;
switch (g_callOperate) {
case OPERATE_DIALING:
CAT1_ChangeStatusScreendisplay(g_callOperate);
}
+void cat1_phone_state_change_cb(uint8_t state)
+{
+ GraphicService::GetInstance()->PostGraphicEvent(
+ std::bind(using_cat1_phone_state_change_cb,state));
+}
+
// PhoneCallInfo tmp;