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

Commit 5d8e004b authored by Jack He's avatar Jack He
Browse files

Telecom: Send call state update to newly connected BluetoothHeadset service

* Call updateHeadsetWithCallState(true) when BluetoothHeadset service is
  connected

Bug: 109790139
Test: toggle Bluetooth while call is active
Change-Id: I8f0d981cf1cfc29409e4f50bd54a66a41280330e
(cherry picked from commit 9c0d4be940f8e4834bc061dd12d5377dabda39bb)
parent a63f0962
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -408,6 +408,7 @@ public class BluetoothPhoneServiceImpl {
                public void onServiceConnected(int profile, BluetoothProfile proxy) {
                    synchronized (mLock) {
                        setBluetoothHeadset(new BluetoothHeadsetProxy((BluetoothHeadset) proxy));
                        updateHeadsetWithCallState(true /* force */);
                    }
                }