fix(Android): Limit the number of dynamic shortcuts to getMaxShortcutCountPerActivity
This commit is contained in:
parent
4bb445d029
commit
bca90b296d
|
@ -253,6 +253,7 @@ class Main : BaseApp(), DIAware {
|
|||
filter = filter,
|
||||
)
|
||||
}
|
||||
.take(ShortcutManagerCompat.getMaxShortcutCountPerActivity(this@Main))
|
||||
ShortcutManagerCompat.addDynamicShortcuts(this@Main, shortcuts)
|
||||
}
|
||||
.launchIn(this)
|
||||
|
|
Loading…
Reference in New Issue