NotificationManager::GetInstance()->ShowNotify(showSOSNotify, (uint16_t)topic, true);
return;
}
-
- cat1_call_dial(call_data);
-
- CallerLogModel::GetInstance()->SetoperateNumber(call_data,req->len);
- CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourceCat1);
-
- cat1_phone_state_change_cb(OPERATE_DIALING);
- NotificationManager::GetInstance()->SetWatchCallStatus(true);
+ cat1_call_dial(call_data);
+ CallerLogModel::GetInstance()->SetoperateNumber(call_data,req->len);
+ CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourceCat1);
+ cat1_phone_state_change_cb(OPERATE_DIALING);
+ NotificationManager::GetInstance()->SetWatchCallStatus(true);
}
free(call_data);
- NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
}
//电话结束处理函数
void MsgCenterNotifyCat1CallEndedProc(const Topic topic, Request* req)
unused(req);
// just stop the notify
- AlarmClockModel::GetInstance()->AlarmPlayerStop();
- // AlarmViewEventListener::GetInstance()->CancelAlarmRing();
+ //AlarmClockModel::GetInstance()->AlarmPlayerStop();
if(!NotificationManager::GetInstance()->GetWatchCallStatus())
{
return;
if (req == NULL) return ;
char* call_data = (char*)malloc(req->len);
int32 ret = memcpy_s(call_data, req->len, req->data, req->len);
- if(strcmp(CallerLogModel::GetInstance()->GetPhoneNumber().c_str(),call_data)!=0 &&
+
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s %s",call_data,CallerLogModel::GetInstance()->GetPhoneNumber().c_str());
+ uint8_t offset_watch =0;
+ if(CallerLogModel::GetInstance()->GetPhoneNumber().c_str()[0]=='+')
+ {
+ offset_watch++;
+ }
+
+ uint8_t offset_call =0;
+ if(call_data[0]=='+')
+ {
+ offset_call++;
+ }
+
+ if(strcmp(CallerLogModel::GetInstance()->GetPhoneNumber().c_str()+offset_watch,call_data+offset_call)!=0 &&
CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1)
{
-
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "no OPERATE_WATCH_FINISH");
}
else
{
// Set additional property
Title->SetText("音乐传输中");
- Title->SetTextId (STR_DIAL_DOWNLOADING_TITLE);
+ Title->SetTextId (STR_MUSIC_TRANSMIT);
+
Title->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
Title->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
Title->SetRollSpeed(0);
uapi_hfp_disconnect();
}
}
- else
+ else if(Transmitting_falg!=OTA_UPDATA_FAIL)
{
if(uapi_dev_runtime_get_bt_powerstat() && cm_get_HFP_switch())
{
CustomEventPublish(TOPIC_EVENT_CAT1_SIGNAL_UPDATE,(uint8_t*)callno,strlen(callno)+1);
return 0;
}
+std::string call_number_end;
int callend_event_sendmsg_toUI(char* callno)
{
/**通过UI事件发送Notify*/
- GraphicService::GetInstance()->PostGraphicEvent(std::bind(callend_event_notify, callno));
+ call_number_end=std::string(callno);
+ //call_number_end.erase(std::remove(call_number.begin(),call_number.end(),' '),call_number.end());
+
+ GraphicService::GetInstance()->PostGraphicEvent(std::bind(callend_event_notify,(char *)call_number_end.c_str()));
return ERRCODE_SUCC;
}