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

Commit cab07635 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Fix SendConnection state params.

Reported by: sj222.choi@samsung.com

Change-Id: I67da4f8a19be72092aa6cd139e561f4e9dfc5f8f
parent 72d2952f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -627,15 +627,16 @@ public class BluetoothPbapService extends Service {
        if (state != mState) {
            if (DEBUG) Log.d(TAG, "Pbap state " + mState + " -> " + state + ", result = "
                    + result);
            Intent intent = new Intent(BluetoothPbap.PBAP_STATE_CHANGED_ACTION);
            intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, mState);
            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(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice);
            sendBroadcast(intent, BLUETOOTH_PERM);
            try {
                mBluetoothService.sendConnectionStateChange(mRemoteDevice, BluetoothProfile.PBAP,
                                                            mState, state);
                                                            mState, prevState);
            } catch (RemoteException e) {
                Log.e(TAG, "RemoteException in sendConnectionStateChange");
            }