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

Commit a5eb2f38 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Fix work profile app not being able to create bond

am: b7f8c070

* commit 'b7f8c070':
  Fix work profile app not being able to create bond

Change-Id: I99c8f2b889e0f0893e6b54bc312aef6a6eb19cd1
parents 0f4902ce b7f8c070
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1071,7 +1071,7 @@ public class AdapterService extends Service {
        }

        public boolean createBond(BluetoothDevice device, int transport) {
            if (!Utils.checkCaller()) {
            if (!Utils.checkCallerAllowManagedProfiles(mService)) {
                Log.w(TAG, "createBond() - Not allowed for non-active user");
                return false;
            }
@@ -1082,7 +1082,7 @@ public class AdapterService extends Service {
        }

        public boolean createBondOutOfBand(BluetoothDevice device, int transport, OobData oobData) {
            if (!Utils.checkCaller()) {
            if (!Utils.checkCallerAllowManagedProfiles(mService)) {
                Log.w(TAG, "createBondOutOfBand() - Not allowed for non-active user");
                return false;
            }