* 3.只有与APP蓝牙连接正常 -> 通过蓝牙连接APP调用大模型
* 4.两者连接都异常 -> 返回错误
*/
+ // bool netWork4GState = model->GetMobileDataIsOpen();
bool netWork4GState = model->GetMobileDataIsOpen();
bool appBluetoothConnectState = model->GetAPPBluetoothIsConnect();
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "netWork4GState = %d,appBluetoothConnectState = %d", netWork4GState, appBluetoothConnectState);
{\r
if (initViewStatus == true)\r
{\r
+ group->RemoveAll();\r
+ delete group;\r
+ group = nullptr;\r
\r
if (SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW] != nullptr)\r
{\r
FocusManager::GetInstance()->RequestFocus(SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]);\r
FocusManager::GetInstance()->RequestFocusByDirection(FOCUS_DIRECTION_UP);\r
SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]->SetRotateFactor(1.0);\r
- AddViewToRootContainer(SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]);\r
+ group->Add(SoundAndVibrationScrollView[SOUNDANDVIBRATIONVIEW]);\r
\r
return true;\r
}\r
\r
void SoundAndVibrationView::OnStart()\r
{\r
- GetRootContainer()->SetTouchable(true);\r
- GetRootContainer()->SetDraggable(true);\r
- GetRootContainer()->SetOnDragListener(presenter_);\r
+ if (group == nullptr)\r
+ {\r
+ group = new UIViewGroup();\r
+ if (group == nullptr)\r
+ {\r
+ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "group new fail");\r
+ return ;\r
+ }\r
+ }\r
+ group->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);\r
+ group->SetDraggable(true);\r
+ group->SetTouchable(true);\r
+ group->SetOnDragListener(presenter_);\r
+ AddViewToRootContainer(group);\r
\r
if (!initViewStatus)\r
{\r
if (SoundAndVibrationScrollView[thisView] == nullptr)\r
{\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SoundAndVibrationView::ChangeSoundAndVibrationView");\r
- AddViewToRootContainer(SoundAndVibrationScrollView[thisView]);\r
+ group->Add(SoundAndVibrationScrollView[thisView]);\r
}\r
return true;\r
}\r
}\r
}\r
SoundAndVibrationScrollView[thisView] = vibrationModeView->VibrationModeViewInit();\r
- AddViewToRootContainer(SoundAndVibrationScrollView[thisView]);\r
+ group->Add(SoundAndVibrationScrollView[thisView]);\r
}\r
return true;\r
}\r