diff options
| author | Po Lu | 2024-04-06 11:17:49 +0800 |
|---|---|---|
| committer | Po Lu | 2024-04-06 11:17:49 +0800 |
| commit | 617bd85cd0bd1d0a73d405d623ee3dd41c7e8a37 (patch) | |
| tree | 68999cb056acde01fb7308096056aa9332c325d8 /java/org | |
| parent | 0286a11f3139dfd4bb9d3989ae860b8c128e12d0 (diff) | |
| download | emacs-617bd85cd0bd1d0a73d405d623ee3dd41c7e8a37.tar.gz emacs-617bd85cd0bd1d0a73d405d623ee3dd41c7e8a37.zip | |
Correct typos in and omissions from earlier Android port changes
* java/AndroidManifest.xml.in: Remove duplicate permissions.
* java/org/gnu/emacs/EmacsWindowManager.java
(removeWindowConsumer): Disregard isFinishing for non-initial
activities.
Diffstat (limited to 'java/org')
| -rw-r--r-- | java/org/gnu/emacs/EmacsWindowManager.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/java/org/gnu/emacs/EmacsWindowManager.java b/java/org/gnu/emacs/EmacsWindowManager.java index a239fdc8ac2..41ea3a15809 100644 --- a/java/org/gnu/emacs/EmacsWindowManager.java +++ b/java/org/gnu/emacs/EmacsWindowManager.java | |||
| @@ -221,11 +221,14 @@ public final class EmacsWindowManager | |||
| 221 | { | 221 | { |
| 222 | consumer.detachWindow (); | 222 | consumer.detachWindow (); |
| 223 | 223 | ||
| 224 | /* Though pruneWindows will likely remove the same windows, call | 224 | /* Though pruneWindows will likely remove the same window(s), |
| 225 | onActivityDetached anyway if isFinishing is set, as in | 225 | call onActivityDetached anyway if isFinishing is set, if |
| 226 | obscure circumstances pruneWindows will not remove frames | 226 | CONSUMER not be a multitasking activity, as in obscure |
| 227 | bound to the system-started task. */ | 227 | circumstances pruneWindows will not remove frames bound to |
| 228 | if (isFinishing) | 228 | the system-started task. */ |
| 229 | if (isFinishing | ||
| 230 | && (!(consumer instanceof EmacsMultitaskActivity) | ||
| 231 | || Build.VERSION.SDK_INT < Build.VERSION_CODES.Q)) | ||
| 229 | window.onActivityDetached (); | 232 | window.onActivityDetached (); |
| 230 | } | 233 | } |
| 231 | 234 | ||