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

Commit 994d7fce authored by Whale Chang's avatar Whale Chang Committed by Gerrit Code Review
Browse files

Merge "Floss: Fix WebHID randomly fails to hang-up call from headset" into main

parents 5ccbee13 3fcf2d22
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1299,9 +1299,10 @@ impl BluetoothMedia {
            // 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();
            if 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);
        });