From 1a5ef9036764ef628fdd0ec3130780e95a66eb08 Mon Sep 17 00:00:00 2001 From: Tanuj Date: Thu, 2 Apr 2026 14:16:13 +0530 Subject: Fixed: PWAs not showing if private profile is enabled --- app/src/main/java/app/olauncher/helper/Utils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/app/olauncher/helper/Utils.kt b/app/src/main/java/app/olauncher/helper/Utils.kt index d2f45cb..466bcd1 100644 --- a/app/src/main/java/app/olauncher/helper/Utils.kt +++ b/app/src/main/java/app/olauncher/helper/Utils.kt @@ -147,6 +147,7 @@ private suspend fun getPinnedShortcuts( setQueryFlags(LauncherApps.ShortcutQuery.FLAG_MATCH_PINNED) } shortcuts.profiles.forEach { profile -> + if (isPrivateSpaceProfile(context, profile)) return@forEach try { shortcuts.getShortcuts(query, profile)?.forEach { shortcut -> if (shortcut.isPinned && pinnedShortcuts.none { it.shortcutId == shortcut.id }) { @@ -166,7 +167,7 @@ private suspend fun getPinnedShortcuts( ) } } - } catch (e: SecurityException) { + } catch (e: Exception) { e.printStackTrace() } } -- cgit v1.2.1