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

Commit 732a57d9 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Gerrit Code Review
Browse files

Merge "Correct return of BluteoothDevice#createBond"

parents 0e41093c a85acd54
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5211,7 +5211,8 @@ public class AdapterService extends Service {
            OobData remoteP256Data, String callingPackage) {
        DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties(device);
        if (deviceProp != null && deviceProp.getBondState() != BluetoothDevice.BOND_NONE) {
            return false;
            // true for BONDING, false for BONDED
            return deviceProp.getBondState() == BluetoothDevice.BOND_BONDING;
        }

        if (!isPackageNameAccurate(this, callingPackage, Binder.getCallingUid())) {