scanning = false if no adapter present
This commit is contained in:
parent
6c7a18067f
commit
a303d71d25
1 changed files with 1 additions and 1 deletions
|
@ -167,10 +167,10 @@ public class InsightPairingActivity extends AppCompatActivity implements Insight
|
|||
intentFilter.addAction(BluetoothDevice.ACTION_FOUND);
|
||||
registerReceiver(broadcastReceiver, intentFilter);
|
||||
bluetoothAdapter.startDiscovery();
|
||||
}
|
||||
scanning = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void stopBLScan() {
|
||||
if (scanning) {
|
||||
|
|
Loading…
Reference in a new issue