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 Oct 2, 2023
1 parent 0af00e9 commit 44774e0
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 44774e0

Please sign in to comment.