屏蔽蓝牙耳机相关代码 3433/3
authorluozheng <1732036298@qq.com>
Thu, 4 Jun 2026 03:17:23 +0000 (11:17 +0800)
committerluozheng <1732036298@qq.com>
Thu, 4 Jun 2026 03:17:23 +0000 (11:17 +0800)
code/sdk/application/wearable/n9/nativeapp/nativeui/player/src/MusicPlayerSourceView.cpp

index f029437..4b42273 100644 (file)
@@ -472,7 +472,7 @@ namespace OHOS
         }\r
 \r
         // UpdateBluetoothHeadsetConnectLabel();\r
-        // UpdateBluetoothHeadSetViewIsVisible();\r
+        UpdateBluetoothHeadSetViewIsVisible();\r
         /* ----------------------------------- Add ---------------------------------- */\r
 \r
         scrollView->Add(titleLabel);\r
@@ -496,10 +496,14 @@ namespace OHOS
         bool value = PlayersModel::GetInstance()->GetMusicSource();\r
         if (bluetoothHeadsetLabel && bluetoothHeadsetImage && bluetoothHeadsetLableButton && bluetoothHeadsetConnectState)\r
         {\r
-            bluetoothHeadsetLabel->SetVisible(value ? false : true);\r
-            bluetoothHeadsetImage->SetVisible(value ? false : true);\r
-            bluetoothHeadsetLableButton->SetVisible(value ? false : true);\r
-            bluetoothHeadsetConnectState->SetVisible(value ? false : true);\r
+            // bluetoothHeadsetLabel->SetVisible(value ? false : true);\r
+            // bluetoothHeadsetImage->SetVisible(value ? false : true);\r
+            // bluetoothHeadsetLableButton->SetVisible(value ? false : true);\r
+            // bluetoothHeadsetConnectState->SetVisible(value ? false : true);\r
+            bluetoothHeadsetLabel->SetVisible(false);\r
+            bluetoothHeadsetImage->SetVisible(false);\r
+            bluetoothHeadsetLableButton->SetVisible(false);\r
+            bluetoothHeadsetConnectState->SetVisible(false);\r
         }\r
         if (phoneLableButton && watchLableButton)\r
         {\r