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

Commit 554b8f8d authored by Hemant Gupta's avatar Hemant Gupta Committed by Myles Watson
Browse files

PBAP: Update intent parameters for connection.

Update the intent parameters to use generic profile flags
so that same can be retrieved by Application like all other profiles
connection change with same handler.

Test: PBAP connection state change intent successfully received by upper
layers.

Bug: 35020479
Change-Id: I1ccb291c13b7f033c8cf8b86482391673775efbf
parent aae5bbe4
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -685,8 +685,8 @@ public class BluetoothPbapService extends ProfileService {
            int prevState = mState;
            int prevState = mState;
            mState = state;
            mState = state;
            Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION);
            Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION);
            intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState);
            intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
            intent.putExtra(BluetoothPbap.PBAP_STATE, mState);
            intent.putExtra(BluetoothProfile.EXTRA_STATE, mState);
            intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice);
            intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice);
            sendBroadcast(intent, BLUETOOTH_PERM);
            sendBroadcast(intent, BLUETOOTH_PERM);
        }
        }