fix: Accidentally used the name as the target's key. Oops
This commit is contained in:
parent
2486d846e8
commit
d5fdbe736b
@ -22,7 +22,7 @@ fun recordSentMessage(context: Context, name: String, jid: String, avatarPath: S
|
||||
}
|
||||
|
||||
val shortcutTarget = "$pkgName.dynamic_share_target"
|
||||
val shortcutBuilder = ShortcutInfoCompat.Builder(context, name).apply {
|
||||
val shortcutBuilder = ShortcutInfoCompat.Builder(context, jid).apply {
|
||||
setShortLabel(name)
|
||||
setIsConversation()
|
||||
setCategories(setOf(shortcutTarget))
|
||||
@ -59,4 +59,4 @@ fun recordSentMessage(context: Context, name: String, jid: String, avatarPath: S
|
||||
context,
|
||||
listOf(shortcutBuilder.build()),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user