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

Commit 3106e3ae authored by Marie Janssen's avatar Marie Janssen Committed by android-build-merger
Browse files

Fix setPairingConfirmation permissions issue (2/2)

am: 93326cfd

Change-Id: If8fdb8c3f5c167e1b6465c67cf64b8310d55b80b
parents 7fd31ca0 93326cfd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1153,12 +1153,12 @@ public final class BluetoothDevice implements Parcelable {

    /**
     * Confirm passkey for {@link #PAIRING_VARIANT_PASSKEY_CONFIRMATION} pairing.
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED}.
     *
     * @return true confirmation has been sent out
     *         false for error
     */
    @RequiresPermission(Manifest.permission.BLUETOOTH_ADMIN)
    @RequiresPermission(Manifest.permission.BLUETOOTH_PRIVILEGED)
    public boolean setPairingConfirmation(boolean confirm) {
        if (sService == null) {
            Log.e(TAG, "BT not enabled. Cannot set pairing confirmation");