Only need to process pods if the data has changed, reduces logspam a bit.

This commit is contained in:
darken
2022-01-14 20:19:28 +01:00
parent 3b4ccd8ed1
commit ff3db87c65
@@ -23,6 +23,7 @@ class AutoConnect @Inject constructor(
fun monitor(): Flow<Unit> = podMonitor.mainDevice
.filterNotNull()
.distinctUntilChanged()
.map { podDevice ->
log(TAG) { "mainPodDevice is $podDevice" }