bool CalculatorPresenter::OnDragEnd(OHOS::UIView& view, const OHOS::DragEvent& event)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT)
{
if(event.GetPreLastPoint().x-event.GetStartPoint().x>150)
bool CalendarPresenter::OnClick(UIView &view, const ClickEvent &event)
{
UNUSED(event);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OnClick");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OnClick");
return false;
}
bool CalendarPresenter::OnDragEnd(OHOS::UIView &view, const OHOS::DragEvent &event)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT)
{
if (event.GetPreLastPoint().x - event.GetStartPoint().x > 100)
bool MainCallingPresenter::OnDragEnd(OHOS::UIView& view, const OHOS::DragEvent& event)
{
-
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingPresenter OnDragEnd");
if (event.GetDragDirection() == DragEvent::DIRECTION_LEFT_TO_RIGHT)
{
{ \r
/* 关闭省电模式 */ \r
uapi_exit_power_saving_mode();\r
-\r
- // UIViewGroup *tmpGroup = dynamic_cast<UIViewGroup *>(group_);\r
- // UIViewGroup::RemoveAndDeleteAllRecursively(tmpGroup);\r
+ if (group_) { \r
+ group_->RemoveAll();\r
+ delete group_; \r
+ group_ = nullptr; \r
+ } \r
\r
// 释放所有动态分配的成员变量 \r
if (timelabel) { \r
delete restart_; \r
restart_ = nullptr; \r
} \r
- if (group_) { \r
- delete group_; \r
- group_ = nullptr; \r
- } \r
+ \r
if (label_) { \r
delete label_; \r
label_ = nullptr; \r
static std::string wakeStr;
static constexpr char *upimagePath = "/user/res/Sleep/up.bin";
SleepTimeView::SleepTimeView() {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepTimeView::SleepTimeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepTimeView::SleepTimeView");
SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
SetViewIndex(0); // 视图索引
}
SleepTimeView::~SleepTimeView() {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " SleepTimeView::~SleepTimeView");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " SleepTimeView::~SleepTimeView");
ClearAll();
g_pSleepView = nullptr;
}
bool SleepTimeView::InitView(void *caller) {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepTimeView InitView %p", caller);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepTimeView InitView %p", caller);
if (InitPage() == false) {
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepTimeView::InitPage fail");
return false;