mock interface now pretty completely simulates a real device

This commit is contained in:
Kevin Hester 2021-02-01 10:56:47 +08:00
parent a0160cadf9
commit 7d846461e4
7 changed files with 103 additions and 43 deletions

View file

@ -265,7 +265,7 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
debug("BTScan component active")
selectedAddress = RadioInterfaceService.getDeviceAddress(context)
return if (bluetoothAdapter == null) {
return if (bluetoothAdapter == null || RadioInterfaceService.isMockInterfaceAvailable(context)) {
warn("No bluetooth adapter. Running under emulation?")
val testnodes = listOf(