summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib
diff options
context:
space:
mode:
authorvenkata Jagadeesh <vjagad@codeaurora.org>2015-10-01 13:12:03 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-27 03:28:22 -0700
commitb90100b20e33cd9653f1f4f21f3ef9405f654016 (patch)
tree384583103aa9b071174983e208585c29d0cf46c8 /packages/SettingsLib
parent46bbf7f041d4375290ef9f7e48020602c444d774 (diff)
downloadframeworks_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-xpackages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java2
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);