fix crash when exceeding max shortcut number

This commit is contained in:
Conny Duck 2024-05-04 10:31:52 +02:00
parent e96ca01dec
commit 22cf50c40d
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -89,12 +89,11 @@ class ShareShortcutHelper @Inject constructor(
.setCategories(setOf("com.keylesspalace.tusky.Share"))
.setShortLabel(account.displayName)
.setPerson(person)
.setLongLived(true)
.setIcon(icon)
.build()
}
ShortcutManagerCompat.addDynamicShortcuts(context, shortcuts)
ShortcutManagerCompat.setDynamicShortcuts(context, shortcuts)
}
}