From: hcj <1224667075@qq.com> Date: Tue, 20 Aug 2024 06:55:17 +0000 (+0800) Subject: 电话bug修复 X-Git-Tag: release_V1.2.70_20241020_135402~609^2~12 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=23eb5318ef5c9ca1fd6cb16816a029bf5ecb9c15;p=mirrors%2FFD230.git 电话bug修复 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp b/code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp index 5180df580..80a727740 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp @@ -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) {