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

Commit 4b7469ef authored by Chienyuan's avatar Chienyuan
Browse files

PBAP: send AUTHORIZED message if permission is ACCESS_ALLOWED

Bug: 150113019
Test: manual
Change-Id: Ib670c7ae8098cca8b21e0ae29970eddc3b41c8ec
parent fd8c2013
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