From: hcj <1224667075@qq.com> Date: Sat, 18 Jan 2025 08:44:18 +0000 (+0800) Subject: 修改电话语言提示 X-Git-Tag: v1.3.113-repair_tp~22 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1639%2Fhead;p=mirrors%2FFD230.git 修改电话语言提示 --- 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()); + } }