Don't show "no paired device" card when we are still looking for permissions.

This commit is contained in:
darken
2022-01-18 16:01:42 +01:00
parent a2159ee485
commit af0c4307e9
@@ -152,7 +152,7 @@ class OverviewFragmentVM @Inject constructor(
}
.run { items.addAll(this) }
if (!showAll && items.none { it is PodDeviceVH.Item }) {
if (!showAll && items.none { it is PodDeviceVH.Item } && permissions.isEmpty()) {
NoPairedDeviceCardVH.Item {
generalSettings.showAll.value = true
}.run { items.add(this) }