优化语言列表,解决语言列表最后一项被遮挡住bug
authorluozheng <1732036298@qq.com>
Sat, 5 Oct 2024 09:52:55 +0000 (17:52 +0800)
committerluozheng <1732036298@qq.com>
Sat, 5 Oct 2024 09:52:55 +0000 (17:52 +0800)
code/sdk/application/wearable/fd230app/nativeui/languagecode/src/LanguageSwitchListitemView.cpp
code/sdk/application/wearable/fd230app/nativeui/player/src/MusicPlayerSourceView.cpp

index f59ca5d..a8ed4fa 100644 (file)
@@ -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()
index b087205..0b59579 100644 (file)
@@ -513,7 +513,6 @@ namespace OHOS
         {\r
             bool state = SettingModel::GetInstance().GetEarPhoneConnectStatus();\r
             bluetoothHeadsetConnectState->SetTextId(state ? STR_CONNECTED : STR_DISCONNECTED);\r
-            bluetoothHeadsetConnectState->SetTextId(state ? STR_CONNECTED : STR_DISCONNECTED);\r
             bluetoothHeadsetConnectState->SetTextColor(state ? Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff) : Color::GetColorFromRGBA(0xff, 0xff, 0xff, 0x7f));\r
             bluetoothHeadsetConnectState->Invalidate();\r
         }\r