Hide personal profile when there's only work profile app results

Close #226
This commit is contained in:
MM20 2023-01-14 22:15:56 +01:00
parent fe065483c8
commit 11f013f02b
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -195,11 +195,11 @@ fun SearchColumn(
) )
} }
GridResults( GridResults(
items = if (showWorkProfileApps && workApps.isNotEmpty()) workApps.toImmutableList() else apps.toImmutableList(), items = if ((showWorkProfileApps || apps.isEmpty()) && workApps.isNotEmpty()) workApps.toImmutableList() else apps.toImmutableList(),
columns = columns, columns = columns,
reverse = reverse, reverse = reverse,
key = "apps", key = "apps",
before = if (workApps.isNotEmpty()) { before = if (workApps.isNotEmpty() && apps.isNotEmpty()) {
{ {
Row( Row(
modifier = Modifier modifier = Modifier