diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2015-11-13 00:07:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-13 00:07:47 +0000 |
commit | 761af3d27d40488d46a35a0c0c421a81fdd46cc4 (patch) | |
tree | 19c371258bfab35916ee8b786d722410f13423aa /packages/SettingsLib | |
parent | 4d93d122bd8c9988cb4239d5aec7401f6ee3c54b (diff) | |
parent | 4f822bbf2a1c44c9dc5668857aa8cf7f0e5969cc (diff) | |
download | frameworks_base-761af3d27d40488d46a35a0c0c421a81fdd46cc4.zip frameworks_base-761af3d27d40488d46a35a0c0c421a81fdd46cc4.tar.gz frameworks_base-761af3d27d40488d46a35a0c0c421a81fdd46cc4.tar.bz2 |
Merge "Don\'t allow contact sharing by default for device not recognized as carkit." into mnc-dr-dev am: 5b6ad87630
am: 4f822bbf2a
* commit '4f822bbf2a1c44c9dc5668857aa8cf7f0e5969cc':
Don't allow contact sharing by default for device not recognized as carkit.
Diffstat (limited to 'packages/SettingsLib')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java index e4b1ed8..d994841 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java @@ -808,7 +808,12 @@ 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) { - setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED); + if (mDevice.getBluetoothClass().getDeviceClass() + == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) { + setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_ALLOWED); + } else { + setPhonebookPermissionChoice(CachedBluetoothDevice.ACCESS_REJECTED); + } } } } |