Show the add App option before expanding the app list

This commit is contained in:
Jonas Lochmann 2021-01-04 01:00:00 +01:00
parent d2c4ebcb88
commit 5a54a40a84
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -139,7 +139,9 @@ class AppsAndRulesModel(application: Application): AndroidViewModel(application)
val maxSize = 3
if (entries.size > maxSize)
entries.takeDistributedElements(maxSize) + listOf(AppAndRuleItem.ExpandAppsItem)
entries.takeDistributedElements(maxSize) + listOf(
AppAndRuleItem.ExpandAppsItem, AppAndRuleItem.AddAppItem
)
else
entries + listOf(AppAndRuleItem.AddAppItem)
}