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

Commit 58cd5e95 authored by pramod kotreshappa's avatar pramod kotreshappa Committed by Bruno Martins
Browse files

Use BLUETOOTH_CONNECT permission instead of legacy permission

CRs-Fixed: 3043842

Change-Id: I70f3c109140bf9634e2d0a293a323cae3c9cd476
parent f55e0f18
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2008,12 +2008,12 @@ public final class BluetoothAdapter {
    }

    /** @hide */
    @RequiresPermission(Manifest.permission.BLUETOOTH)
    @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
    public boolean isBroadcastActive() {
        try {
            mServiceLock.readLock().lock();
            if (mService != null) {
                return mService.isBroadcastActive();
                return mService.isBroadcastActive(mAttributionSource);
            }
        } catch (RemoteException e) {
            Log.e(TAG, "", e);