Refreshing Bluetooth devices will clear all available devices.
Bug: 16851309 Change-Id: I9ffb1ddaeb8e785be145ea79467fc361a022d8d7
This commit is contained in:
@@ -249,6 +249,8 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
|
||||
if (!mAvailableDevicesCategoryIsPresent) {
|
||||
getPreferenceScreen().addPreference(mAvailableDevicesCategory);
|
||||
}
|
||||
mLocalManager.getCachedDeviceManager().clearCachedDevices();
|
||||
mAvailableDevicesCategory.removeAll();
|
||||
mLocalAdapter.startScanning(true);
|
||||
}
|
||||
|
||||
@@ -405,7 +407,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
|
||||
LayoutInflater inflater = getActivity().getLayoutInflater();
|
||||
mSettingsDialogView = inflater.inflate(R.layout.bluetooth_device_picker, null);
|
||||
profileFrag = (DeviceProfilesSettings)activity.getFragmentManager()
|
||||
.findFragmentById(R.id.bluetooth_fragment_settings);
|
||||
.findFragmentById(R.id.bluetooth_fragment_settings);
|
||||
}
|
||||
|
||||
final View dialogLayout = mSettingsDialogView;
|
||||
|
Reference in New Issue
Block a user