emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bf38783c32e 1/2: Fix notification cancellation detection on Andro


From: Po Lu
Subject: master bf38783c32e 1/2: Fix notification cancellation detection on Android
Date: Mon, 11 Mar 2024 21:49:11 -0400 (EDT)

branch: master
commit bf38783c32e794e46fd03210242f265f34257940
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix notification cancellation detection on Android
    
    * java/org/gnu/emacs/EmacsDesktopNotification.java (display1):
    Don't specify FLAG_ONE_SHOT in cancel intents.
---
 java/org/gnu/emacs/EmacsDesktopNotification.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/java/org/gnu/emacs/EmacsDesktopNotification.java 
b/java/org/gnu/emacs/EmacsDesktopNotification.java
index f52c3d9d4fb..d05ed2e6203 100644
--- a/java/org/gnu/emacs/EmacsDesktopNotification.java
+++ b/java/org/gnu/emacs/EmacsDesktopNotification.java
@@ -281,11 +281,9 @@ public final class EmacsDesktopNotification
 
     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
       pending = PendingIntent.getBroadcast (context, 0, intent,
-                                           (PendingIntent.FLAG_IMMUTABLE
-                                            | PendingIntent.FLAG_ONE_SHOT));
+                                           PendingIntent.FLAG_IMMUTABLE);
     else
-      pending = PendingIntent.getBroadcast (context, 0, intent,
-                                           PendingIntent.FLAG_ONE_SHOT);
+      pending = PendingIntent.getBroadcast (context, 0, intent, 0);
 
     notification.deleteIntent = pending;
     manager.notify (tag, 2, notification);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]