解决:音乐处于手机音乐播放歌曲,手表重启,会默认恢复为手表音乐,但是这时候手机点击播放,手表会发出声音bug #473
authorluozheng <1732036298@qq.com>
Tue, 3 Sep 2024 03:53:59 +0000 (11:53 +0800)
committerluozheng <1732036298@qq.com>
Tue, 3 Sep 2024 03:53:59 +0000 (11:53 +0800)
code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp

index 31c0f6a..1154f2c 100644 (file)
@@ -2,7 +2,7 @@
  * @Author: luozheng 1732036298@qq.com
  * @Date: 2024-02-18 09:09:13
  * @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-28 20:09:20
+ * @LastEditTime: 2024-09-03 11:31:33
  * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingModel.cpp
  */
 #include "settings/include/SettingModel.h"
@@ -10,6 +10,7 @@
 #include "ui_resource_string.h"
 #include "classicbluetooth/include/BluetoothServiceOptionsView.h"
 #include "player/include/PlayersView.h"
+#include "player/include/PlayersModel.h"
 namespace OHOS
 {
     SettingModel::SettingModel() {}
@@ -104,6 +105,7 @@ namespace OHOS
         {
             BluetoothServiceOptionsView::GetInstance()->Button_UPdata();
         }
+        PlayersModel::GetInstance()->SetMusicSource(btConnectStatus);
         if (PlayersView::GetInstance())
         {
             PlayersView::GetInstance()->UpdatePlayerView();