diff options
| author | Tanuj <thetanuj@hotmail.com> | 2026-04-02 14:16:13 +0530 |
|---|---|---|
| committer | Tanuj <thetanuj@hotmail.com> | 2026-04-02 14:16:13 +0530 |
| commit | 1a5ef9036764ef628fdd0ec3130780e95a66eb08 (patch) | |
| tree | 4cc928e0b4402bd6364bd2c7551933961669df97 /app/src | |
| parent | 1c96fdf0a4274b81f518d8f6d79b87299cf9bc41 (diff) | |
| download | SidePhOnelauncher-1a5ef9036764ef628fdd0ec3130780e95a66eb08.tar.gz SidePhOnelauncher-1a5ef9036764ef628fdd0ec3130780e95a66eb08.tar.bz2 SidePhOnelauncher-1a5ef9036764ef628fdd0ec3130780e95a66eb08.zip | |
Fixed: PWAs not showing if private profile is enabled
Diffstat (limited to 'app/src')
| -rw-r--r-- | app/src/main/java/app/olauncher/helper/Utils.kt | 3 |
1 files changed, 2 insertions, 1 deletions
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() } } |
