Make sure there is always just one work profile

This commit is contained in:
MM20
2025-04-02 21:09:51 +02:00
parent bffd440408
commit 0ac5212da1
2 changed files with 29 additions and 12 deletions
@@ -205,7 +205,7 @@ fun LazyListScope.AppResults(
if (showList) {
ListResults(
key = "apps",
items = apps.filter { it.user == profiles[selectedProfileIndex].userHandle },
items = if (isProfileLocked) emptyList() else apps,
before = before?.let { { it() } },
selectedIndex = selectedIndex,
itemContent = { app, showDetails, index ->
@@ -223,7 +223,7 @@ fun LazyListScope.AppResults(
} else {
GridResults(
key = "apps",
items = apps.filter { it.user == profiles[selectedProfileIndex].userHandle },
items = if (isProfileLocked) emptyList() else apps,
before = before,
itemContent = {
GridItem(