OSDN Git Service

Revert "Don't allow contact sharing by default for device not recognized as carkit."
authorLalit Kansara <lkansara@codeaurora.org>
Mon, 25 Jul 2016 09:17:04 +0000 (14:47 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:15:20 +0000 (08:15 -0600)
This reverts commit ccbe7383e63d7d23bac6bccc8e4094fe474645ec

Change-Id: Iebeaab7368b98b7424a65d94a22966a2c588054c

packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java

index b07e0dd..068f211 100644 (file)
@@ -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);
-                }
+                setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED);
             }
         }
     }