Merge "Ensure settings maintains its Bluetooth device inquiry state" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
524f4979f5
@@ -229,15 +229,19 @@ public abstract class DeviceListPreferenceFragment extends
|
||||
@VisibleForTesting
|
||||
void enableScanning() {
|
||||
// BluetoothAdapter already handles repeated scan requests
|
||||
if (!mScanEnabled) {
|
||||
startScanning();
|
||||
mScanEnabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void disableScanning() {
|
||||
if (mScanEnabled) {
|
||||
stopScanning();
|
||||
mScanEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onScanningStateChanged(boolean started) {
|
||||
|
Reference in New Issue
Block a user