#110,解决:手表,音乐,音乐来源选择手机后,切换到表盘界面,在回到音乐界面,音源图标会变为本地音源bug 881/1 881/head
authorluozheng <1732036298@qq.com>
Thu, 5 Sep 2024 10:09:21 +0000 (18:09 +0800)
committerluozheng <1732036298@qq.com>
Thu, 5 Sep 2024 10:09:21 +0000 (18:09 +0800)
code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersView.cpp

index 5c1fe68..96a33f9 100644 (file)
@@ -1197,7 +1197,7 @@ namespace OHOS
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PreLoadPlayerModeImageRes fail");\r
                 return;\r
             }\r
-            if (LoadPlayerButtonImage(musicSourceButton, PLAYER_LOCAL_MUSIC_COLOR) == false)\r
+            if (LoadPlayerButtonImage(musicSourceButton, PlayersModel::GetInstance()->GetMusicSource() ? PLAYER_PHONE_COLOR : PLAYER_LOCAL_MUSIC_COLOR) == false)\r
             {\r
                 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "musicSourceButton LoadPlayerImage fail");\r
                 return;\r
@@ -1236,7 +1236,7 @@ namespace OHOS
             ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_PROVE, PLAYER_IAMGES);\r
             ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_NEXT, PLAYER_IAMGES);\r
             UnLoadPlayerModeImageRes();\r
-            ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_LOCAL_MUSIC_COLOR, PLAYER_IAMGES);\r
+            ImageCacheManager::GetInstance().UnloadOneInMultiRes(PlayersModel::GetInstance()->GetMusicSource() ? PLAYER_PHONE_COLOR : PLAYER_LOCAL_MUSIC_COLOR, PLAYER_IAMGES);\r
             ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_VOICE, PLAYER_IAMGES);\r
 \r
             resLoadStatus = false;\r