delete setmainView;
setmainView = nullptr;
}
- // if (sleepView != nullptr)
- // {
- // sleepView->RemoveAll();
- // delete sleepView;
- // sleepView = nullptr;
- // }
- // if (traingView != nullptr)
- // {
- // traingView->RemoveAll();
- // delete traingView;
- // traingView = nullptr;
- // }
+ if (sleepView != nullptr)
+ {
+ sleepView->RemoveAll();
+ delete sleepView;
+ sleepView = nullptr;
+ }
+ if (traingView != nullptr)
+ {
+ traingView->RemoveAll();
+ delete traingView;
+ traingView = nullptr;
+ }
if (weatherControlView != nullptr)
{
delete weatherControlView;
delete GoalControlView;
GoalControlView = nullptr;
}
- // if (applistCardView != nullptr)
- // {
- // delete applistCardView;
- // applistCardView = nullptr;
- // }
if (mainSwipeGroup != nullptr)
{
delete mainSwipeGroup;
void MainViewSample::OnStart()
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainViewSample::OnStart");
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample::OnStart");
if (mainSwipeGroup == nullptr) {
mainSwipeGroup = new UICrossView();
{
if (cardSettings[i] == CardMapper[j].id)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainViewSample:: recordCard[%d]", j);
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample:: recordCard[%d]", j);
recordCard[j] = (this->*(CardMapper[j].func))();
if (recordCard[j] == nullptr)
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainViewSample:: recordCard %d error", j);
return false;
}
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,
"MainViewSample:: recordCard[%d]:%p", j, recordCard[j]);
break;
}
if (recordCard[cardId] != nullptr)
{
mainSwipeGroup->HorAdd(recordCard[cardId]);
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainViewSample:: HorViewLoad cardid = %d ViewIndex = %d",
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample:: HorViewLoad cardid = %d ViewIndex = %d",
cardId, recordCard[cardId]->GetViewIndex());
}
else
void MainViewSample::VerticalViewInit(void)
{
- WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample::VerticalViewInit");
-#ifdef FD230
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainViewSample::VerticalViewInit")
if (dropDownView == nullptr) {
dropDownView = new PullUpDownView();
if (dropDownView == nullptr)
messageView->PreLoad();
messageView->SetDraggable(false);
// messageView->SetIntercept(true);
- messageView->SetStyle(STYLE_BACKGROUND_OPA, OPA_TRANSPARENT);
-#endif
}
PullUpDownView *MainViewSample::GetPullUpView()