label_call_hint->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
label_call_hint->SetRollSpeed(0);
label_call_hint->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
- group->Add(label_call_hint);
+ //group->Add(label_call_hint);
if (label_call_source == nullptr) {
#include "goalother.h"
#include "ConfigModelC.h"
#include "heart_blood/health_service/health_service.h"
+#include "vibrator_service.h"
#define DIALDATASET 1
//#include "Systemupgrade.h"
CallerLogModel::GetInstance()->SetoperateNumber(callData.number, callData.number_len);
CallerLogModel::GetInstance()->SetCallSource(CallerLogModel::CallSource::CallSourcePhone);
NotificationManager::GetInstance()->SetWatchCallStatus(true);
+ if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
+ {
+ ui_api_vibrate_once_func();
+ }
}
void MsgCenterNotifyHfpPhoneProc(const Topic topic, Request* req)
void MsgCenterNotifyHfpWatchHintProc(const Topic topic, Request* req)
{
unused(req);
+
+ if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
+ {
+ ui_api_vibrate_once_func();
+ }
+
//NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
NotificationManager::GetInstance()->ShowNotify(showcallhintNotify,
static_cast<uint16_t>(topic), true);