Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e1db4e6 authored by Jeremy Wu's avatar Jeremy Wu
Browse files

Floss: trigger disconnect for HFP

This fixes the issue that HFP-only device doesn't disconnect when
invoked via the UI.

Bug: 240641968
Tag: #floss
Test: Build and verify HFP device can be disconnected via UI
Change-Id: I88df588bbdc0910fa171750cdf5be8601b126cc9
parent 741a652e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1520,7 +1520,7 @@ impl IBluetooth for Bluetooth {
                                self.hh.as_ref().unwrap().disconnect(&mut addr.unwrap());
                                self.hh.as_ref().unwrap().disconnect(&mut addr.unwrap());
                            }
                            }


                            Profile::A2dpSink | Profile::A2dpSource => {
                            Profile::A2dpSink | Profile::A2dpSource | Profile::Hfp => {
                                let txl = self.tx.clone();
                                let txl = self.tx.clone();
                                let address = device.address.clone();
                                let address = device.address.clone();
                                topstack::get_runtime().spawn(async move {
                                topstack::get_runtime().spawn(async move {