From 931860ad59806c6bf8bf8e985ab4e80372d37dbd Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 27 Apr 2024 17:54:17 +0800 Subject: [PATCH] =?utf8?q?=E9=80=9A=E8=BF=87=E8=AE=BE=E7=BD=AE=E6=8B=A6?= =?utf8?q?=E6=88=AA=E5=87=BD=E6=95=B0=E4=BC=98=E5=8C=96=E8=BF=9E=E6=8E=A5?= =?utf8?q?=E7=8A=B6=E6=80=81=E8=A7=86=E5=9B=BE=E7=9A=84=E9=80=80=E5=87=BA?= =?utf8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/main/src/ConnectedStatusView.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/ConnectedStatusView.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/ConnectedStatusView.cpp index 96f44035d..4ea6fbdde 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/ConnectedStatusView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/ConnectedStatusView.cpp @@ -38,13 +38,13 @@ namespace OHOS for (int i = 0; i < MAX_CONNECTEDSTATUS_ID; i++) { delete background[i]; - background[i]; + background[i] = nullptr; delete PhoneAndEarAndBluetooth[i]; - PhoneAndEarAndBluetooth[i]; + PhoneAndEarAndBluetooth[i] = nullptr; delete ConnectedStatusLabel[i]; - ConnectedStatusLabel[i]; + ConnectedStatusLabel[i] = nullptr; } delete PhoneConnectedStatusImage; @@ -145,6 +145,9 @@ namespace OHOS } group->SetPosition(0, 0, 466, 466); group->SetViewIndex(1); + group->SetTouchable(true); + group->SetDraggable(true); + group->SetIntercept(true); /* -------------------------------------------------------------------------- */ LabelConfig titleConfig = {93, 53, 280, 35, 30, 35, "连接状态"}; Title = InitLabel(titleConfig); -- 2.17.1