PBAP: Update intent parameters for connection
This patch updates the intent paramters to use generic profile flags
so that same can be retrieved by Application like all other profiles
connection change with same handler.
Change-Id: I1ccb291c13b7f033c8cf8b86482391673775efbf
CRs-Fixed: 758697
diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapService.java b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
index cbe750b..c2be509 100644
--- a/src/com/android/bluetooth/pbap/BluetoothPbapService.java
+++ b/src/com/android/bluetooth/pbap/BluetoothPbapService.java
@@ -756,8 +756,8 @@
int prevState = mState;
mState = state;
Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION);
- intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState);
- intent.putExtra(BluetoothPbap.PBAP_STATE, mState);
+ intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
+ intent.putExtra(BluetoothProfile.EXTRA_STATE, mState);
intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice);
sendBroadcast(intent, BLUETOOTH_PERM);
AdapterService s = AdapterService.getAdapterService();