Skip to content

Commit e3f5f41

Browse files
committed
Replace Handlers with coroutines
1 parent dde21ed commit e3f5f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BluetoothLeChat/app/src/main/java/com/example/bluetoothlechat/scan/DeviceScanViewModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class DeviceScanViewModel(app: Application) : AndroidViewModel(app) {
8282
// Update the UI to indicate an active scan is starting
8383
_viewState.value = ActiveScan
8484

85-
// Stop scanning after the scan period
85+
// Stop scanning after the scan period specified
8686
CoroutineScope(Dispatchers.Main).launch {
8787
delay(SCAN_PERIOD)
8888
stopScanning()

0 commit comments

Comments
 (0)