fix crash when exceeding max shortcut number
This commit is contained in:
parent
e96ca01dec
commit
22cf50c40d
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue