Add additional attachment extras
This commit is contained in:
parent
983b71b3df
commit
9dd21255d3
2 changed files with 9 additions and 2 deletions
|
@ -31,10 +31,16 @@ class BroadcastService(private val ctx: Context) {
|
|||
intent.putExtra("tags", notification.tags)
|
||||
intent.putExtra("tags_map", joinTagsMap(splitTags(notification.tags)))
|
||||
intent.putExtra("priority", notification.priority)
|
||||
intent.putExtra("click", notification.click)
|
||||
intent.putExtra("muted", muted)
|
||||
intent.putExtra("muted_str", muted.toString())
|
||||
intent.putExtra("attachment_name", notification.attachment?.name)
|
||||
intent.putExtra("attachment_url", notification.attachment?.url)
|
||||
intent.putExtra("attachment_name", notification.attachment?.name ?: "")
|
||||
intent.putExtra("attachment_type", notification.attachment?.type ?: "")
|
||||
intent.putExtra("attachment_size", notification.attachment?.size ?: 0L)
|
||||
intent.putExtra("attachment_size_str", notification.attachment?.size?.toString() ?: "")
|
||||
intent.putExtra("attachment_expires", notification.attachment?.expires ?: 0L)
|
||||
intent.putExtra("attachment_expires_str", notification.attachment?.expires?.toString() ?: "")
|
||||
intent.putExtra("attachment_url", notification.attachment?.url ?: "")
|
||||
|
||||
Log.d(TAG, "Sending message intent broadcast: ${intent.action} with extras ${intent.extras}")
|
||||
ctx.sendBroadcast(intent)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
Bugs:
|
||||
* Fixed: Long-click selecting of notifications scrolls to the top (#235, thanks to @wunter8)
|
||||
* Add attachment and click URL extras to MESSAGE_RECEIVED broadcast (#330, thanks to @wunter8)
|
||||
|
||||
Additional translations:
|
||||
* Italian (thanks to @Genio2003)
|
||||
|
|
Loading…
Reference in a new issue