From: xue <2144439972@qq.com> Date: Thu, 11 Jun 2026 02:32:00 +0000 (+0800) Subject: 优化通话界面 X-Git-Url: http://git.snicker.com.cn/css/html/static/gitweb.css?a=commitdiff_plain;h=1ee1470671b52ffefb55a5cbde3f9d6f340bf2aa;p=mirrors%2FFD230.git 优化通话界面 --- 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();