Skip to content

Commit 17e4532

Browse files
committed
docs: add TODO comments for DROID-17 in MainActivityViewModel
1 parent 3fbca75 commit 17e4532

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/org/kabiri/android/usbterminal/viewmodel/MainActivityViewModel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ internal class MainActivityViewModel
5454
viewModelScope.launch {
5555
usbUseCase.usbDevice.collect { device ->
5656
_infoMessageFlow.value = "device discovered: ${device?.vendorId}\n"
57+
// TODO: DROID-17 - check if this line is required after DROID-17 is done
5758
device?.let { openDeviceAndPort(it) }
5859
}
5960
}
@@ -92,7 +93,7 @@ internal class MainActivityViewModel
9293
fun connectIfAlreadyHasPermission() = viewModelScope.launch {
9394
val usbDevice = usbUseCase.usbDevice.firstOrNull() ?: return@launch
9495
usbUseCase.hasPermission(usbDevice)
95-
// TODO : Fix hasPermission return value not being used here.
96+
// TODO: DROID-17 - Fix hasPermission return value not being used here.
9697
openDeviceAndPort(usbDevice)
9798
}
9899

0 commit comments

Comments
 (0)