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 b0a9d7f6..76bcb260 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 @@ -35,6 +35,8 @@ class ProfileManager( private val context: Context, private val permissionsManager: PermissionsManager, ) { + private val mutex = Mutex() + private val userManager = context.getSystemService()!! private val launcherApps = context.getSystemService()!! @@ -92,8 +94,6 @@ class ProfileManager( } } } - - private val mutex = Mutex() private suspend fun refreshProfiles() { mutex.withLock { val profiles = mutableListOf()