#endif
{TOPIC_EVENT_FIND_WATCH,PRIORITY_TWO},// 找手表 [2]
{TOPIC_EVENT_CANCEL_FIND_WATCH,PRIORITY_TWO},// 取消找手表 [2]
- {TOPIC_EVENT_DRINKREMINDER,PRIORITY_THREE},//喝水提醒 [3]
+ {TOPIC_EVENT_DRINKREMINDER,PRIORITY_TWO},//喝水提醒 [2]
{TOPIC_EVENT_MESSAGENOTE,PRIORITY_THREE},//消息提醒 [3]
{TOPIC_EVENT_MESSAGE_UPDATA,PRIORITY_TWO},//消息更新提醒 [3]
{TOPIC_EVENT_SLEEPNOTE,PRIORITY_THREE},//睡眠弹窗 [3]
// unused(topic);
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyDrinkReminderProc !");
- DrinkReminderViewEventListener::GetInstance().set_screen_on_and_vibration();
+ // DrinkReminderViewEventListener::GetInstance().set_screen_on_and_vibration();
if (CheckPriority(topic))
{
NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
#include <custom_utils.h>
#include "vibrator_service.h"
#include "../../../../../../../drivers/peripheral/utils/custom_runtime.h"
-
+#include <ui_service.h>
+#include "../../../../../../drivers/peripheral/vibrator/service/vibrator_service.h"
namespace OHOS
{
DrinkReminderGroupView->Add(DrinkReminderButton);
DrinkReminderGroupView->Add(DrinkReminderLabel);
+ /* -------------------------------------------------------------------------- */
+ if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
+ {
+ ui_api_vibrate_once_func(); // 震动一次
+ }
+
+ ScreenTurnOn(10 * 1000); // 亮屏操作 10秒关闭
+ /* -------------------------------------------------------------------------- */
+
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Create DrinkReminderView succeed!!");
}