in rx-central-ble/src/main/java/com/uber/rxcentralble/core/scanners/ThrottledLollipopScanner.java [169:185]
private void stopScan() {
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
if (adapter != null && adapter.isEnabled()) {
BluetoothLeScanner bleScanner = adapter.getBluetoothLeScanner();
if (bleScanner != null) {
bleScanner.stopScan(scanCallback);
} else if (RxCentralLogger.isError()) {
RxCentralLogger.error("stopScan - BluetoothLeScanner is null!");
}
} else if (RxCentralLogger.isError()) {
if (adapter == null) {
RxCentralLogger.error("stopScan - Default Bluetooth Adapter is null!");
} else {
RxCentralLogger.error("stopScan - Bluetooth Adapter is disabled.");
}
}
}