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

Commit daa33838 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android (Google) Code Review
Browse files

Merge "Fix SendConnection state params."

parents c93e9051 cab07635
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");
            }