From b90100b20e33cd9653f1f4f21f3ef9405f654016 Mon Sep 17 00:00:00 2001 From: venkata Jagadeesh Date: Thu, 1 Oct 2015 13:12:03 +0530 Subject: Bluetooth: Sync Preference in UI for new cached device Create preference in UI also whenever new cached device added. Change-Id: Ib02f953f4dc6e3a74fac70442dc7959504ca9374 --- .../src/com/android/settingslib/bluetooth/BluetoothEventManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/SettingsLib') 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); -- cgit v1.1