电话bug修复
authorhcj <1224667075@qq.com>
Tue, 20 Aug 2024 06:55:17 +0000 (14:55 +0800)
committerhcj <1224667075@qq.com>
Tue, 20 Aug 2024 06:55:17 +0000 (14:55 +0800)
code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp

index 5180df5..80a7277 100644 (file)
@@ -77,6 +77,13 @@ bool MainCallingView::InitPointerValue()
         return false;
     }
 
+
+    screenView = new CallingView();
+    if (screenView == nullptr) {
+        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingView::screenView");
+        return false;
+    }
+
     callView = new CallingView();
     if (callView == nullptr) {
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingView::callView");
@@ -89,11 +96,6 @@ bool MainCallingView::InitPointerValue()
         return false;
     }
 
-    screenView = new CallingView();
-    if (screenView == nullptr) {
-        WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MainCallingView::screenView");
-        return false;
-    }
 
     screenGroup = screenView->CreateUIViewGroup(0);
     if (screenGroup == nullptr) {