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

Commit 162ec4a3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes Ib147f444,Iea7472f3 am: 313e8806

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1794377

Change-Id: Ie812d94c6910b0ace6f9732c0c8c48df14371447
parents 29075bde 313e8806
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -107,6 +107,16 @@ public class McpService extends ProfileService {
        }
    }

    public void onDeviceUnauthorized(BluetoothDevice device) {
        // TODO: For now just reject authorization for other than LeAudio device already authorized.
        //       Consider intent based authorization mechanism for non-LeAudio devices.
        setDeviceAuthorized(device, false);
    }

    public int getDeviceAuthorization(BluetoothDevice device) {
        return BluetoothDevice.ACCESS_ALLOWED;
    }

    void setDeviceAuthorized(BluetoothDevice device, boolean isAuthorized) {

    }
Loading