fix(Android): Limit the number of dynamic shortcuts to getMaxShortcutCountPerActivity

This commit is contained in:
Artem Chepurnoy 2024-09-01 14:00:11 +03:00
parent 4bb445d029
commit bca90b296d
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ class Main : BaseApp(), DIAware {
filter = filter, filter = filter,
) )
} }
.take(ShortcutManagerCompat.getMaxShortcutCountPerActivity(this@Main))
ShortcutManagerCompat.addDynamicShortcuts(this@Main, shortcuts) ShortcutManagerCompat.addDynamicShortcuts(this@Main, shortcuts)
} }
.launchIn(this) .launchIn(this)