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

Commit 05f47f44 authored by Lalit Kansara's avatar Lalit Kansara Committed by Linux Build Service Account
Browse files

Revert "Don't allow contact sharing by default for device not recognized as carkit."

This reverts commit ccbe7383

Change-Id: Iebeaab7368b98b7424a65d94a22966a2c588054c
parent 6597fa6f
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -830,12 +830,7 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
            // The pairing dialog now warns of phone-book access for paired devices.
            // No separate prompt is displayed after pairing.
            if (getPhonebookPermissionChoice() == CachedBluetoothDevice.ACCESS_UNKNOWN) {
                if (mDevice.getBluetoothClass().getDeviceClass()
                        == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) {
                setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
                } else {
                    setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED);
                }
            }
        }
    }