From: luozheng <1732036298@qq.com> Date: Thu, 5 Sep 2024 10:09:21 +0000 (+0800) Subject: #110,解决:手表,音乐,音乐来源选择手机后,切换到表盘界面,在回到音乐界面,音源图标会变为本地音源bug X-Git-Tag: release_V1.2.70_20241020_135402~529^2~8 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F881%2Fhead;p=mirrors%2FFD230.git #110,解决:手表,音乐,音乐来源选择手机后,切换到表盘界面,在回到音乐界面,音源图标会变为本地音源bug --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersView.cpp b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersView.cpp index 5c1fe6893..96a33f9ed 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersView.cpp @@ -1197,7 +1197,7 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PreLoadPlayerModeImageRes fail"); return; } - if (LoadPlayerButtonImage(musicSourceButton, PLAYER_LOCAL_MUSIC_COLOR) == false) + if (LoadPlayerButtonImage(musicSourceButton, PlayersModel::GetInstance()->GetMusicSource() ? PLAYER_PHONE_COLOR : PLAYER_LOCAL_MUSIC_COLOR) == false) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "musicSourceButton LoadPlayerImage fail"); return; @@ -1236,7 +1236,7 @@ namespace OHOS ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_PROVE, PLAYER_IAMGES); ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_NEXT, PLAYER_IAMGES); UnLoadPlayerModeImageRes(); - ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_LOCAL_MUSIC_COLOR, PLAYER_IAMGES); + ImageCacheManager::GetInstance().UnloadOneInMultiRes(PlayersModel::GetInstance()->GetMusicSource() ? PLAYER_PHONE_COLOR : PLAYER_LOCAL_MUSIC_COLOR, PLAYER_IAMGES); ImageCacheManager::GetInstance().UnloadOneInMultiRes(PLAYER_MUSIC_VOICE, PLAYER_IAMGES); resLoadStatus = false;