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

Commit ed8d339e authored by Benson Li's avatar Benson Li Committed by Jack He
Browse files

HFP: Send caller ID in +CLIP command (1/4)

* Modify BluetoothHeadset so that phoneStateChanged method can
  provide caller display name

Bug: 111378831
Test: runtest bluetooth, runtest -x BluetoothPhoneServiceTest.java
Change-Id: Ibc3611a50ec9f103fd235dde606ecbd10657e014
parent 6fcbd0b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -973,11 +973,11 @@ public final class BluetoothHeadset implements BluetoothProfile {
     */
    @UnsupportedAppUsage
    public void phoneStateChanged(int numActive, int numHeld, int callState, String number,
            int type) {
            int type, String name) {
        final IBluetoothHeadset service = mService;
        if (service != null && isEnabled()) {
            try {
                service.phoneStateChanged(numActive, numHeld, callState, number, type);
                service.phoneStateChanged(numActive, numHeld, callState, number, type, name);
            } catch (RemoteException e) {
                Log.e(TAG, e.toString());
            }