* commit '98d0f8ca2d38ba9cc6fd14eee728abed41431038': Fixed a Bluetooth Scanning issue.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user