commit 6aa21a4f1371518e141d6f2c32dba87d81341c31
parent d3d8e22957af1617b25982d4f23dc7d9a06c98cf
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date: Thu, 1 Jun 2023 23:43:08 +0200
fix(notifications): reply intent
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/extras/Notifications.kt b/app/src/main/kotlin/me/rhunk/snapenhance/features/impl/extras/Notifications.kt
@@ -103,9 +103,9 @@ class Notifications : Feature("Notifications", loadParams = FeatureLoadParams.IN
"Reply",
PendingIntent.getBroadcast(
context.androidContext,
- 0,
+ System.nanoTime().toInt(),
replyIntent,
- PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
+ PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE
)
).addRemoteInput(chatReplyInput).build()