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

Commit 5d232f68 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Automerger Merge Worker
Browse files

Merge "Correct return of BluteoothDevice#createBond" am: 732a57d9

parents f89d1c6f 732a57d9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5226,7 +5226,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())) {