From 053473807467d2eb4af36b10e2a12ea2cd96b4f6 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 18 Jan 2025 16:44:18 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E7=94=B5=E8=AF=9D=E8=AF=AD?= =?utf8?q?=E8=A8=80=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../bluetooth/src/BluetoothItemView.cpp | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp index d793d9898..80dc7e8f4 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -175,17 +175,29 @@ namespace OHOS bool SCOConnected = headset_SCO_Is_connect_extend( (bd_addr_t *)&infoData.addr); if(SCOConnected) { - std::string Text = connectStateLabel.GetText(); - + connectStateLabel.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); + if(ConfigModel::GetInstance()->GetLanguage() == ZH_CN) + { + connectStateLabel.SetText("蓝牙耳机通话已连接"); + } + else + { + connectStateLabel.SetText("Bluetooth headset call connected"); + } + + } + else + { + connectStateLabel.SetTextColor(Color::GetColorFromRGBA(0xff, 0xff, 0xff, 0x7f)); if(ConfigModel::GetInstance()->GetLanguage() == ZH_CN) { - Text+=" 播放中"; + connectStateLabel.SetText("蓝牙耳机通话未连接"); } else { - Text+=" In play"; + connectStateLabel.SetText("Bluetooth headset call is not connected"); } - connectStateLabel.SetText(Text.c_str()); + } } -- 2.17.1