diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 3c62ba9110e..8ea680f018b 100755 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -230,10 +230,19 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem } private void startScanning() { - if (isUiRestricted()) return; + if (isUiRestricted()) { + return; + } + if (!mAvailableDevicesCategoryIsPresent) { getPreferenceScreen().addPreference(mAvailableDevicesCategory); } + + if (mAvailableDevicesCategory != null) { + setDeviceListGroup(mAvailableDevicesCategory); + removeAllDevices(); + } + mLocalManager.getCachedDeviceManager().clearCachedDevices(); mAvailableDevicesCategory.removeAll(); mLocalAdapter.startScanning(true);