From: luozheng <1732036298@qq.com> Date: Sat, 5 Oct 2024 09:52:55 +0000 (+0800) Subject: 优化语言列表,解决语言列表最后一项被遮挡住bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c43c05bafcdc865ec9d94cefab6405c3f8b2b1f6;p=mirrors%2FFD230.git 优化语言列表,解决语言列表最后一项被遮挡住bug --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp index f59ca5de5..a8ed4faae 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-03-28 14:28:03 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-27 15:35:26 + * @LastEditTime: 2024-10-05 17:39:04 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp */ #include "languagecode/include/LanguageSwitchListitemView.h" @@ -39,6 +39,14 @@ namespace OHOS m_LabelButtonExt.SetFont(itemInfo.fontname, 30); languae_Image.SetSrc(itemInfo.path); //m_LabelButtonExt + if(strcmp(itemInfo.code,"az") == 0) + { + SetHeight(160); + } + else + { + SetHeight(120); + } } void LanguageSwitchListitemView::SetUpChild() diff --git a/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerSourceView.cpp b/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerSourceView.cpp index b08720589..0b5957965 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerSourceView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerSourceView.cpp @@ -513,7 +513,6 @@ namespace OHOS { bool state = SettingModel::GetInstance().GetEarPhoneConnectStatus(); bluetoothHeadsetConnectState->SetTextId(state ? STR_CONNECTED : STR_DISCONNECTED); - bluetoothHeadsetConnectState->SetTextId(state ? STR_CONNECTED : STR_DISCONNECTED); bluetoothHeadsetConnectState->SetTextColor(state ? Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff) : Color::GetColorFromRGBA(0xff, 0xff, 0xff, 0x7f)); bluetoothHeadsetConnectState->Invalidate(); }