Clear non bonded device when device picker start

Bug: 205258325
Test: manual
Change-Id: I3de46ef79bcf1f643e5cd762b95ad8056237e2c6
This commit is contained in:
Chienyuan
2021-12-24 17:42:54 +08:00
parent 7f348f2ba9
commit c5b8ae80ea

View File

@@ -107,6 +107,8 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment {
@Override @Override
public void onStart() { public void onStart() {
super.onStart(); super.onStart();
mLocalManager.getCachedDeviceManager().clearNonBondedDevices();
removeAllDevices();
addCachedDevices(); addCachedDevices();
mSelectedDevice = null; mSelectedDevice = null;
if (mScanAllowed) { if (mScanAllowed) {