File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/src/main/java/org/kabiri/android/usbterminal/viewmodel Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments