mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-29 00:31:01 -08:00
Fix notification cancellation detection on Android
* java/org/gnu/emacs/EmacsDesktopNotification.java (display1): Don't specify FLAG_ONE_SHOT in cancel intents.
This commit is contained in:
parent
a7a37341ca
commit
bf38783c32
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue