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

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

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

Change-Id: I665f823fdacb384c90ba2f3515733c4aa3009fad
parents 9ea89bf8 a1dde3fc
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