[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e7e285ec348: Fix crash when displaying notifications on Android 3
From: |
Po Lu |
Subject: |
master e7e285ec348: Fix crash when displaying notifications on Android 3.0 |
Date: |
Wed, 13 Mar 2024 03:35:57 -0400 (EDT) |
branch: master
commit e7e285ec348c8c19b1ce06a52b89baec71956d7a
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix crash when displaying notifications on Android 3.0
* java/org/gnu/emacs/EmacsDesktopNotification.java (display1):
Don't call setPriority until Jelly Bean.
---
java/org/gnu/emacs/EmacsDesktopNotification.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/java/org/gnu/emacs/EmacsDesktopNotification.java
b/java/org/gnu/emacs/EmacsDesktopNotification.java
index d00b9f2ea22..d072994df2b 100644
--- a/java/org/gnu/emacs/EmacsDesktopNotification.java
+++ b/java/org/gnu/emacs/EmacsDesktopNotification.java
@@ -228,10 +228,12 @@ public final class EmacsDesktopNotification
builder.setContentTitle (title);
builder.setContentText (content);
builder.setSmallIcon (icon);
- builder.setPriority (priority);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
- insertActions (context, builder);
+ {
+ builder.setPriority (priority);
+ insertActions (context, builder);
+ }
notification = builder.build ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e7e285ec348: Fix crash when displaying notifications on Android 3.0,
Po Lu <=