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

Commit aeafde64 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 0781e871 47b69a6d
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