蓝牙解绑弹窗重复
authorxue <2144439972@qq.com>
Sat, 31 Jan 2026 02:11:37 +0000 (10:11 +0800)
committerxue <2144439972@qq.com>
Sat, 31 Jan 2026 02:11:37 +0000 (10:11 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/bluetooth/src/BluetoothModel.cpp

index 57b68da..f9254d9 100644 (file)
@@ -985,20 +985,20 @@ static void ACLConnectionFail(const bd_addr_t &bdAddr, bool isPeerDisconnect = f
             BluetoothModel::GetInstance()->UnBindRemoteDevice(macStr);
         }
         
-        //亮屏操作
-        uapi_set_screen_on_api();
+        // //亮屏操作
+        // uapi_set_screen_on_api();
         
-        ThunderBirdMainView *thunderBirdMainView = ThunderBirdMainView::GetInstance();
-        if (thunderBirdMainView == nullptr)
-        {
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "thunderBirdMainView nullptr");
-            return;
-        }
-        int currentView = thunderBirdMainView->GetCurrentView();
-        thunderBirdMainView->ChangeView(
-            currentView,
-            THUNDERBIRD_BLUEVIEW,
-            ThunderBirdBlueView::THUNDERBIRD_BULEVIEW_DISCONNECT_SUCCESS);
+        // ThunderBirdMainView *thunderBirdMainView = ThunderBirdMainView::GetInstance();
+        // if (thunderBirdMainView == nullptr)
+        // {
+        //     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "thunderBirdMainView nullptr");
+        //     return;
+        // }
+        // int currentView = thunderBirdMainView->GetCurrentView();
+        // thunderBirdMainView->ChangeView(
+        //     currentView,
+        //     THUNDERBIRD_BLUEVIEW,
+        //     ThunderBirdBlueView::THUNDERBIRD_BULEVIEW_DISCONNECT_SUCCESS);
     }
 }
 void BluetoothModel::BtGapAclStateChangedHandle(gap_acl_state_t state, unsigned int reason, const bd_addr_t &bdAddr)