diff options
author | venkata Jagadeesh <vjagad@codeaurora.org> | 2015-10-01 13:12:03 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-27 03:28:22 -0700 |
commit | b90100b20e33cd9653f1f4f21f3ef9405f654016 (patch) | |
tree | 384583103aa9b071174983e208585c29d0cf46c8 /packages/SettingsLib | |
parent | 46bbf7f041d4375290ef9f7e48020602c444d774 (diff) | |
download | frameworks_base-b90100b20e33cd9653f1f4f21f3ef9405f654016.zip frameworks_base-b90100b20e33cd9653f1f4f21f3ef9405f654016.tar.gz frameworks_base-b90100b20e33cd9653f1f4f21f3ef9405f654016.tar.bz2 |
Bluetooth: Sync Preference in UI for new cached device
Create preference in UI also whenever new cached device
added.
Change-Id: Ib02f953f4dc6e3a74fac70442dc7959504ca9374
Diffstat (limited to 'packages/SettingsLib')
-rwxr-xr-x | packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java index 4bcbea7..8dc48b3 100755 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java @@ -196,6 +196,8 @@ public final class BluetoothEventManager { cachedDevice = mDeviceManager.addDevice(mLocalAdapter, mProfileManager, device); Log.d(TAG, "DeviceFoundHandler created new CachedBluetoothDevice: " + cachedDevice); + // callback to UI to create Preference for new device + dispatchDeviceAdded(cachedDevice); } cachedDevice.setRssi(rssi); cachedDevice.setBtClass(btClass); |