diff options
| author | Po Lu | 2023-02-26 10:33:41 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-26 10:33:41 +0800 |
| commit | 39ddf1855bbebc5d31b544e6308a4ae49f4925b3 (patch) | |
| tree | 874c9903ca54abd0abcaed2c98d03a1d3fec9633 /java | |
| parent | 687f4fadde4fda8a320cbb4e26518af1034cbb9a (diff) | |
| download | emacs-39ddf1855bbebc5d31b544e6308a4ae49f4925b3.tar.gz emacs-39ddf1855bbebc5d31b544e6308a4ae49f4925b3.zip | |
Update Android port
* doc/lispref/commands.texi (Misc Events): Update documentation.
* java/org/gnu/emacs/EmacsService.java (EmacsService)
(onStartCommand): Improve notification message.
* src/android.c (android_hack_asset_fd): Detect if ashmem is
available dynamically.
(android_detect_ashmem): New function.
* src/textconv.c (record_buffer_change): Use markers to
represent BEG and END instead.
(syms_of_textconv): Update doc string.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsService.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsService.java b/java/org/gnu/emacs/EmacsService.java index 48c7c743014..7f4f75b5147 100644 --- a/java/org/gnu/emacs/EmacsService.java +++ b/java/org/gnu/emacs/EmacsService.java | |||
| @@ -101,6 +101,8 @@ public class EmacsService extends Service | |||
| 101 | /* Display metrics used by font backends. */ | 101 | /* Display metrics used by font backends. */ |
| 102 | public DisplayMetrics metrics; | 102 | public DisplayMetrics metrics; |
| 103 | 103 | ||
| 104 | /* Flag that says whether or not to print verbose debugging | ||
| 105 | information. */ | ||
| 104 | public static final boolean DEBUG_IC = false; | 106 | public static final boolean DEBUG_IC = false; |
| 105 | 107 | ||
| 106 | @Override | 108 | @Override |
| @@ -117,8 +119,10 @@ public class EmacsService extends Service | |||
| 117 | { | 119 | { |
| 118 | tem = getSystemService (Context.NOTIFICATION_SERVICE); | 120 | tem = getSystemService (Context.NOTIFICATION_SERVICE); |
| 119 | manager = (NotificationManager) tem; | 121 | manager = (NotificationManager) tem; |
| 120 | infoBlurb = ("See (emacs)Android Environment for more" | 122 | infoBlurb = ("This notification is displayed to keep Emacs" |
| 121 | + " details about this notification."); | 123 | + " running while it is in the background. You" |
| 124 | + " may disable if you want;" | ||
| 125 | + " see (emacs)Android Environment."); | ||
| 122 | channel | 126 | channel |
| 123 | = new NotificationChannel ("emacs", "Emacs persistent notification", | 127 | = new NotificationChannel ("emacs", "Emacs persistent notification", |
| 124 | NotificationManager.IMPORTANCE_DEFAULT); | 128 | NotificationManager.IMPORTANCE_DEFAULT); |