Hide personal profile when there's only work profile app results
Close #226
This commit is contained in:
parent
fe065483c8
commit
11f013f02b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user