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

Commit 78c23767 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Fix issue related selecting of "Contact sharing" in BT Settings.

Bug: 20041014
Change-Id: I84b59fdfd82c4bf25965bcb10a15fbff2dfbe721
parent cf8b3b1c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -807,9 +807,11 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
        if (BluetoothUuid.containsAnyUuid(uuids, PbapServerProfile.PBAB_CLIENT_UUIDS)) {
            // The pairing dialog now warns of phone-book access for paired devices.
            // No separate prompt is displayed after pairing.
            if (getPhonebookPermissionChoice() == CachedBluetoothDevice.ACCESS_UNKNOWN) {
                setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
            }
        }
    }

    public int getMaxConnectionState() {
        int maxState = BluetoothProfile.STATE_DISCONNECTED;