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

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

Merge changes Ib147f444,Iea7472f3

* changes:
  MediaControlGattService
  Add Media Control Profile constants definitions
parents bf5e3a5c cc35e78c
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