UNUSED(hideView);
if (container[thisView] == nullptr)
{
- UIViewGroup *group = InitShowUpView();
- if (group == nullptr)
+ UIViewGroup *viewGroup = InitShowUpView();
+ if (viewGroup == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "group nullptr fail");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "viewGroup nullptr fail");
return false;
}
- container[thisView] = group;
+ container[thisView] = viewGroup;
RootView::GetInstance()->Add(container[thisView]);
}
return true;
return false;
}
// init view
- UIViewGroup *group = rebootDeviceView->InitShowUpView();
- if (group == nullptr)
- {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "group nullptr fail");
+ UIViewGroup *viewGroup = rebootDeviceView->InitShowUpView();
+ if (viewGroup == nullptr) {
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "viewGroup nullptr fail");
return false;
}
- container[thisView] = group;
+ container[thisView] = viewGroup;
RootView::GetInstance()->Add(container[thisView]);
}
return true;
return false;
}
// init view
- UIViewGroup *group = shutdownDeviceView->InitShowUpView();
- if (group == nullptr)
+ UIViewGroup *viewGroup = shutdownDeviceView->InitShowUpView();
+ if (viewGroup == nullptr)
{
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "group nullptr fail");
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "viewGroup nullptr fail");
return false;
}
- container[thisView] = group;
+ container[thisView] = viewGroup;
RootView::GetInstance()->Add(container[thisView]);
}
return true;
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "RebootView::ChangeView %d, %d", hideView, showView);
- if (CheckViewParam(hideView, showView) == false)
+ if (!CheckViewParam(hideView, showView))
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RebootView::CheckViewParam failed.");
return;
PreprosssChangeView tmpPreProcessView = preProcessView[showView];
- if ((this->*tmpPreProcessView)(hideView, showView) == false)
+ if (!(this->*tmpPreProcessView)(hideView, showView))
{
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "RebootView::ChangeView %d %dfailed", showView, hideView);
return;