Merge "Ensure settings maintains its Bluetooth device inquiry state" am: bec574dca7
am: 3b68dd138c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1716270 Change-Id: I9c37ec40573808a91c6052e2d46cce28df7cfead
This commit is contained in:
@@ -229,14 +229,18 @@ public abstract class DeviceListPreferenceFragment extends
|
||||
@VisibleForTesting
|
||||
void enableScanning() {
|
||||
// BluetoothAdapter already handles repeated scan requests
|
||||
startScanning();
|
||||
mScanEnabled = true;
|
||||
if (!mScanEnabled) {
|
||||
startScanning();
|
||||
mScanEnabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void disableScanning() {
|
||||
stopScanning();
|
||||
mScanEnabled = false;
|
||||
if (mScanEnabled) {
|
||||
stopScanning();
|
||||
mScanEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user