Loading system/gd/rust/linux/stack/src/bluetooth_media.rs +8 −0 Original line number Diff line number Diff line Loading @@ -1273,6 +1273,14 @@ impl BluetoothMedia { }; debug!("[{}]: UHID: Telephony use: {}", DisplayAddress(&addr), state); if state == false { // As there's a HID call for each WebHID call, even if it has been answered in the app // or pre-exists, and that an app which disconnects from WebHID may not have trigger // the UHID_OUTPUT_NONE, we need to remove all pending HID calls on telephony use // release to keep lower HF layer in sync and not prevent A2DP streaming self.hangup_call_impl(); self.phone_state_change("".into()); } self.telephony_callbacks.lock().unwrap().for_all_callbacks(|callback| { callback.on_telephony_use(address.to_string(), state); }); Loading Loading
system/gd/rust/linux/stack/src/bluetooth_media.rs +8 −0 Original line number Diff line number Diff line Loading @@ -1273,6 +1273,14 @@ impl BluetoothMedia { }; debug!("[{}]: UHID: Telephony use: {}", DisplayAddress(&addr), state); if state == false { // As there's a HID call for each WebHID call, even if it has been answered in the app // or pre-exists, and that an app which disconnects from WebHID may not have trigger // the UHID_OUTPUT_NONE, we need to remove all pending HID calls on telephony use // release to keep lower HF layer in sync and not prevent A2DP streaming self.hangup_call_impl(); self.phone_state_change("".into()); } self.telephony_callbacks.lock().unwrap().for_all_callbacks(|callback| { callback.on_telephony_use(address.to_string(), state); }); Loading