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

Commit a1dde3fc authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

PBAP: send AUTHORIZED message if permission is ACCESS_ALLOWED am: a85834bf

Change-Id: I3cefdb407696b9c34e4ffe257150ec7780fd4e2b
parents 9ea89bf8 a85834bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -770,6 +770,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