Merge "Fix unregisterScanner call in BluetoothLeScanner."
This commit is contained in:
committed by
Android (Google) Code Review
commit
b319639fac
@@ -441,8 +441,8 @@ public final class BluetoothLeScanner {
|
||||
if (status == BluetoothGatt.GATT_SUCCESS) {
|
||||
try {
|
||||
if (mScannerId == -1) {
|
||||
// Registration succeeds after timeout, unregister client.
|
||||
mBluetoothGatt.unregisterClient(scannerId);
|
||||
// Registration succeeds after timeout, unregister scanner.
|
||||
mBluetoothGatt.unregisterScanner(scannerId);
|
||||
} else {
|
||||
mScannerId = scannerId;
|
||||
mBluetoothGatt.startScan(mScannerId, mSettings, mFilters,
|
||||
|
||||
Reference in New Issue
Block a user