From 6e1e3bc5ead756c07e919a6387d05df4eb81fb05 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 5 Sep 2024 18:09:21 +0800 Subject: [PATCH] =?utf8?q?#110=EF=BC=8C=E8=A7=A3=E5=86=B3=EF=BC=9A?= =?utf8?q?=E6=89=8B=E8=A1=A8=EF=BC=8C=E9=9F=B3=E4=B9=90=EF=BC=8C=E9=9F=B3?= =?utf8?q?=E4=B9=90=E6=9D=A5=E6=BA=90=E9=80=89=E6=8B=A9=E6=89=8B=E6=9C=BA?= =?utf8?q?=E5=90=8E=EF=BC=8C=E5=88=87=E6=8D=A2=E5=88=B0=E8=A1=A8=E7=9B=98?= =?utf8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=9C=A8=E5=9B=9E=E5=88=B0=E9=9F=B3?= =?utf8?q?=E4=B9=90=E7=95=8C=E9=9D=A2=EF=BC=8C=E9=9F=B3=E6=BA=90=E5=9B=BE?= =?utf8?q?=E6=A0=87=E4=BC=9A=E5=8F=98=E4=B8=BA=E6=9C=AC=E5=9C=B0=E9=9F=B3?= =?utf8?q?=E6=BA=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/player/src/PlayersView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.17.1