mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 03:50:23 +02:00
Show the add App option before expanding the app list
This commit is contained in:
parent
d2c4ebcb88
commit
5a54a40a84
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ class AppsAndRulesModel(application: Application): AndroidViewModel(application)
|
||||||
val maxSize = 3
|
val maxSize = 3
|
||||||
|
|
||||||
if (entries.size > maxSize)
|
if (entries.size > maxSize)
|
||||||
entries.takeDistributedElements(maxSize) + listOf(AppAndRuleItem.ExpandAppsItem)
|
entries.takeDistributedElements(maxSize) + listOf(
|
||||||
|
AppAndRuleItem.ExpandAppsItem, AppAndRuleItem.AddAppItem
|
||||||
|
)
|
||||||
else
|
else
|
||||||
entries + listOf(AppAndRuleItem.AddAppItem)
|
entries + listOf(AppAndRuleItem.AddAppItem)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue