Skip to content

Commit

Permalink
Update cached device list on new device list events
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Sep 18, 2023
1 parent e88854d commit 0a5236d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class DeviceRepository(
deviceListEvents
.map {
if (it is DeviceListEvent.Available) {
cachedDeviceList.value = DeviceList.Available(it.devices)
DeviceList.Available(it.devices)
} else {
DeviceList.Error
Expand Down

0 comments on commit 0a5236d

Please sign in to comment.