From 8abbaab8b3a33006c9d8e4231a2b754d524fd05c Mon Sep 17 00:00:00 2001 From: "jhtop.kim" Date: Mon, 8 Aug 2011 19:34:27 +0900 Subject: [PATCH] Bluetooth : fix for showing paired device list error - Pair one devie, then turn off BT then reboot the phone and enter Bluetooth settings screen and turn on BT. The last paired device will not be displayed in paired list. - After onResume() is called, the list is shown. - The reason is that mDevicePreferenceMap is not empty. The paired devices are cached when BT is off and then skipped when BT is turned on and updateContent() is called again. - Make the mDevicePreferenceMap clear when updateContent() is called and adapter state is BluetoothAdapter.STATE_ON. Change-Id: Ia745e02bcb4e21a54ccc8477a4dfbad1fa5aed17 Signed-off-by: jhtop.kim --- src/com/android/settings/bluetooth/BluetoothSettings.java | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 src/com/android/settings/bluetooth/BluetoothSettings.java diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java old mode 100644 new mode 100755 index 9f56f32acc7..e18e48a2510 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -236,6 +236,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment { case BluetoothAdapter.STATE_ON: preferenceScreen.removeAll(); preferenceScreen.setOrderingAsAdded(true); + mDevicePreferenceMap.clear(); // This device if (mMyDevicePreference == null) {