From: Po Lu Date: Tue, 22 Aug 2023 00:04:16 +0000 (+0800) Subject: Repair desktop notification on Android 31 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b411761cbb0adb2b4e613603bc7ad4b83eeaf082;p=emacs.git Repair desktop notification on Android 31 * java/org/gnu/emacs/EmacsDesktopNotification.java (display1): Provide FLAG_IMMUTABLE under Android S and later, not just versions of Android after S. (bug#65433) --- diff --git a/java/org/gnu/emacs/EmacsDesktopNotification.java b/java/org/gnu/emacs/EmacsDesktopNotification.java index c6ebbc6ae48..121d8f481a2 100644 --- a/java/org/gnu/emacs/EmacsDesktopNotification.java +++ b/java/org/gnu/emacs/EmacsDesktopNotification.java @@ -144,7 +144,7 @@ public final class EmacsDesktopNotification intent = new Intent (context, EmacsActivity.class); intent.addFlags (Intent.FLAG_ACTIVITY_NEW_TASK); - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.S) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) pending = PendingIntent.getActivity (context, 0, intent, PendingIntent.FLAG_IMMUTABLE); else