diff --git a/core/base/src/main/java/de/mm20/launcher2/profiles/Profile.kt b/core/base/src/main/java/de/mm20/launcher2/profiles/Profile.kt index 36404b78..4f74a618 100644 --- a/core/base/src/main/java/de/mm20/launcher2/profiles/Profile.kt +++ b/core/base/src/main/java/de/mm20/launcher2/profiles/Profile.kt @@ -41,7 +41,6 @@ data class Profile( data class State( val locked: Boolean = false, - val hidden: Boolean = false, ) companion object { diff --git a/core/profiles/src/main/java/de/mm20/launcher2/profiles/ProfileManager.kt b/core/profiles/src/main/java/de/mm20/launcher2/profiles/ProfileManager.kt index ece7bb6e..b0a9d7f6 100644 --- a/core/profiles/src/main/java/de/mm20/launcher2/profiles/ProfileManager.kt +++ b/core/profiles/src/main/java/de/mm20/launcher2/profiles/ProfileManager.kt @@ -48,7 +48,7 @@ class ProfileManager( */ val activeProfiles: Flow> = profileStates.map { it.mapNotNull { - if (it.state.hidden) null else it.profile + if (it.state.locked) null else it.profile } }.shareIn(scope, SharingStarted.WhileSubscribed(), replay = 1) @@ -142,7 +142,6 @@ class ProfileManager( private fun getProfileState(userHandle: UserHandle): Profile.State { return Profile.State( locked = !userManager.isUserUnlocked(userHandle), - hidden = !userManager.isUserRunning(userHandle), ) } diff --git a/data/applications/src/main/java/de/mm20/launcher2/applications/LauncherApp.kt b/data/applications/src/main/java/de/mm20/launcher2/applications/LauncherApp.kt index 70a7a525..28bd72c7 100644 --- a/data/applications/src/main/java/de/mm20/launcher2/applications/LauncherApp.kt +++ b/data/applications/src/main/java/de/mm20/launcher2/applications/LauncherApp.kt @@ -141,8 +141,10 @@ internal data class LauncherApp( options ) } catch (e: SecurityException) { + Log.e("MM20", "Could not launch app", e) return false } catch (e: ActivityNotFoundException) { + Log.e("MM20", "Could not launch app", e) return false } return true