From 1ee1470671b52ffefb55a5cbde3f9d6f340bf2aa Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 11 Jun 2026 10:32:00 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E9=80=9A=E8=AF=9D=E7=95=8C?= =?utf8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/makephone/src/CallingView.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/makephone/src/CallingView.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/makephone/src/CallingView.cpp index 5ec837896..379088426 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/makephone/src/CallingView.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/makephone/src/CallingView.cpp @@ -142,7 +142,9 @@ bool CallingView::InitAddOnclickevent() imageHandUp->SetOnClickListener(clickLeftListener); imageHorns->SetOnClickListener(clickLeftListener); imagedial->SetOnClickListener(clickLeftListener); - imageheadset->SetOnClickListener(clickLeftListener); + if (imageheadset != nullptr) { + imageheadset->SetOnClickListener(clickLeftListener); + } for( int i=0;i<12;i++) { @@ -185,7 +187,7 @@ bool CallingView::InitImageViewDisplay() if (imageHandUp == nullptr) { return false; } - imageHandUp->SetPosition(188, 340); // 30 : offset + imageHandUp->SetPosition(296,316); // 原蓝牙耳机按钮位置 imageHandUp->SetSrc(PNG_230_VECTOR_IMAGE_PATH); imageHandUp->SetTouchable(true); imageHandUp->SetViewId("callingHandUp"); @@ -205,7 +207,7 @@ bool CallingView::InitImageViewDisplay() if (imagedial == nullptr) { return false; } - imagedial->SetPosition(80, 296); // 30 : offset + imagedial->SetPosition(80, 316); // 30 : offset imagedial->SetSrc(PNG_230_DIAL_IMAGE_PATH); imagedial->SetTouchable(true); imagedial->SetViewId("dial"); @@ -238,8 +240,9 @@ bool CallingView::InitImageViewDisplay() } - imageheadset->SetTouchable(true); - + imageheadset->SetTouchable(false); + imageheadset->SetVisible(false); + group->Add(imageheadset); imageperson = new UIImageView(); -- 2.17.1