diff options
| author | Po Lu | 2024-06-27 11:06:59 +0800 |
|---|---|---|
| committer | Po Lu | 2024-06-27 11:07:38 +0800 |
| commit | 860840621a1ebe2e4f17ba8ae78d441ea75650b2 (patch) | |
| tree | ce491e28fbd0ec6867b9669f77e92c151e8f28c7 /exec/exec.c | |
| parent | d5c6eb1f9646781cf103124fb7e88d1fa1cf2473 (diff) | |
| download | emacs-860840621a1ebe2e4f17ba8ae78d441ea75650b2.tar.gz emacs-860840621a1ebe2e4f17ba8ae78d441ea75650b2.zip | |
Prevent crashes and related issues if initial activity is destroyed on Android
* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) <initialWindowCreated>: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.
* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity. Catch exceptions around startActivity.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions