#include "ConfigModel.h"
#include <custom_runtime.h>
#include "../../../../../../drivers/peripheral/vibrator/service/vibrator_service.h"
+#include <custom_utils.h>
namespace OHOS
{
static constexpr const char *RING_AGAIN = "响铃将在十分钟后再次响起";
g_alarmView->Add(g_StopBtn);
/* -------------------------------------------------------------------------- */
StartAlarmTimer(AlarmTimerType::NOTIFY_ALARM_RING, NOTIFY_ONE_SECOND);
+ ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON);
}
NotificationManager::GetInstance()->RegisterNotifyCleanupFunction(FreeAlarmView);
return g_alarmView;
RootView::GetInstance()->Remove(g_alarmView);
delete g_alarmView;
g_alarmView = nullptr;
+ ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON);
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "FreeAlarmView over!!");
}
}