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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user