From: luozheng <1732036298@qq.com> Date: Mon, 19 Aug 2024 09:31:20 +0000 (+0800) Subject: 添加手机同步歌曲到手表,手表音乐列表同步刷新。 X-Git-Tag: release_V1.2.70_20241020_135402~631 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=9d6934a3a0d00241bcc8c730980f49298a39b764;p=mirrors%2FFD230.git 添加手机同步歌曲到手表,手表音乐列表同步刷新。 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersModel.cpp index 60517bcce..7205a9fcc 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/player/src/PlayersModel.cpp @@ -782,12 +782,12 @@ void PlayersModel::SetMusicSource(bool value) void PlayersModel::UpdateMusicPlayerList(void) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "PlayersModel::UpdateMusicPlayerList"); + PlayersListGroup::GetInstance()->SetUpListCase(); PlayersView *playersView = PlayersView::GetInstance(); if (playersView == nullptr) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "OptionsButtonOnClick playersView nullptr err"); return; } - PlayersListGroup::GetInstance()->SetUpListCase(); if(playersView->GetMusicListList()) { playersView->GetMusicListList()->RefreshList(); diff --git a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp index 4169bff40..bfdf9ef6c 100644 --- a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp +++ b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.cpp @@ -2042,6 +2042,13 @@ void SendDtfmStrNumberToCat1(char ch) // ble发送单个字符到CAT1 DTMF功能 send_dtfm_number_toCat1(ch); } +void ble_mp3_list_update(void) +{ +#ifdef FD230 + SendMsgToUIService(UI_UPDATE_MUSIC_PLAYER_LIST,0,nullptr,0); +#endif +} + #ifdef __cplusplus #if __cplusplus } diff --git a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.h b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.h index 76e5559e6..5d54a924f 100644 --- a/code/sdk/application/wearable/service/ble_service/blemoder/bletest.h +++ b/code/sdk/application/wearable/service/ble_service/blemoder/bletest.h @@ -306,7 +306,7 @@ typedef struct Tag_ID3V2_TAG }Tag_ID3V2_TAG_T; - +void ble_mp3_list_update(void); char * dir_to_json_buf_malloc_(uint8_t type); diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index 58cd7ff04..48b1c2676 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -6468,6 +6468,7 @@ void decode_file_checksum(ble_read_data *buffer_handle) case 2://mp3 ble_reply_cmd(DIAL_INSTALL_REPY_CMD,1); + ble_mp3_list_update(); break; case 3://dial