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

Commit 8a0ff7e6 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "PBAP: send AUTHORIZED message if permission is ACCESS_ALLOWED" am:...

Merge "PBAP: send AUTHORIZED message if permission is ACCESS_ALLOWED" am: aeafde64 am: b08bf6fd am: ed8c770e am: 9757a193 am: 3e43c6d2

Change-Id: I64d8b29af0659ae2aa5210815a7434fa7e7ec8d1
parents 5d52217c 3e43c6d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -769,6 +769,7 @@ public class BluetoothPbapService extends ProfileService implements IObexConnect

        if (permission == BluetoothDevice.ACCESS_ALLOWED) {
            setConnectionPolicy(device, BluetoothProfile.CONNECTION_POLICY_ALLOWED);
            stateMachine.sendMessage(PbapStateMachine.AUTHORIZED);
        } else if (permission == BluetoothDevice.ACCESS_REJECTED) {
            stateMachine.sendMessage(PbapStateMachine.REJECTED);
        } else { // permission == BluetoothDevice.ACCESS_UNKNOWN