delete DrinkReminderGroupView;
DrinkReminderGroupView = nullptr;
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Free DrinkReminderView succeed!!");
+ ScreenTurnOff();
}
return;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-08-17 16:44:20
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-20 11:01:16
+ * @LastEditTime: 2024-09-29 14:36:18
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/motion_recognition_notification.cpp
*/
#include "notification_manager.h"
delete MotionRecognitionGroupView;
MotionRecognitionGroupView = nullptr;
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Free MotionRecognitionView succeed!!");
+ ScreenTurnOff();
}
return;
}
* @Author: luozheng 1732036298@qq.com
* @Date: 2024-03-22 10:04:36
* @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-09-11 17:27:05
+ * @LastEditTime: 2024-09-29 14:36:41
* @FilePath: /FD230/code/sdk/application/wearable/service/msg_center/src/notify/pairing_notification.cpp
*/
#include "notification_manager.h"
delete DeviceBindingView;
DeviceBindingView = nullptr;
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FreeDeviceBindingView] success");
+ ScreenTurnOff();
}
}
DeviceUnBindingView = nullptr;
FreeDeviceUnbindingRequestGroupView();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[FreeDeviceUnBindingView] success");
+ ScreenTurnOff();
}
}
#include <service/graphic_service.h>
#include <thread>
#include "ConfigModel.h"
+#include <ui_service.h>
+#include "vibrator_service.h"
namespace OHOS
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Create SedentaryReminderView succeed!!");
}
+ /* -------------------------------------------------------------------------- */
+ ScreenTurnOn(10*1000);//显示时长10s
+ ui_api_vibrate_once_func();
+ /* -------------------------------------------------------------------------- */
NotificationManager::GetInstance()->RegisterNotifyCleanupFunction(FreeSedentaryReminderView);
return SedentaryReminderGroupView;
}
delete SedentaryReminderGroupView;
SedentaryReminderGroupView = nullptr;
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Free SedentaryReminderView succeed!!");
+ ScreenTurnOff();
}
return;
}