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

Commit bbbcd799 authored by Hemant Gupta's avatar Hemant Gupta Committed by android-build-merger
Browse files

Merge \\"PBAP: Allow wearable handsfree device for PBAP Access\\" into nyc-mr1-dev am: 7f44cdd3

am: f58f8f9d

Change-Id: Ib98c5432d1182437f2800ef42333bc70897d0473
parents 79e98777 f58f8f9d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -809,7 +809,9 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
            // No separate prompt is displayed after pairing.
            if (getPhonebookPermissionChoice() == CachedBluetoothDevice.ACCESS_UNKNOWN) {
                if (mDevice.getBluetoothClass().getDeviceClass()
                        == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) {
                        == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE ||
                    mDevice.getBluetoothClass().getDeviceClass()
                        == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET) {
                    setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
                } else {
                    setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED);