aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPo Lu2024-07-18 13:36:46 +0800
committerPo Lu2024-07-18 13:36:46 +0800
commitd31b202377ed844c1ecc405ffb879c03d5552d6b (patch)
treedc34f4f588ac8409ce877d4ca420b868cbbf99ec /java
parent3a790abd869ddadc343710deb0c4368227ba6611 (diff)
parent4c35382e98308843dce79438844fb5a796b7032b (diff)
downloademacs-d31b202377ed844c1ecc405ffb879c03d5552d6b.tar.gz
emacs-d31b202377ed844c1ecc405ffb879c03d5552d6b.zip
Merge from savannah/emacs-30
4c35382e983 ; * src/emacs.c (syms_of_emacs) <Vsystem_type>: Fix doc s... 34882d52432 Port better to Android 3.0 765cfaed775 ; * doc/emacs/anti.texi (Antinews): Fix typos (bug#72167). 7093504da2d ; Fix typos (bug#72167) 8c7c4f4baaa New Tramp tests 85d2d7982d4 Update Tramp manual 504bdd560af ; Fix last change 3ccebbe17b7 Fix 'toggle-window-dedicated' documentation 719d5753ca6 ; * doc/lispref/help.texi (Keys in Documentation): Add cr... e3bba63ecb9 Checkdoc fixes in transient.el
Diffstat (limited to 'java')
-rw-r--r--java/org/gnu/emacs/EmacsNoninteractive.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/org/gnu/emacs/EmacsNoninteractive.java b/java/org/gnu/emacs/EmacsNoninteractive.java
index 9f2b9fa8b56..8a1ad98d8f9 100644
--- a/java/org/gnu/emacs/EmacsNoninteractive.java
+++ b/java/org/gnu/emacs/EmacsNoninteractive.java
@@ -120,11 +120,11 @@ public final class EmacsNoninteractive
120 } 120 }
121 121
122 /* Get a LoadedApk or ActivityThread.PackageInfo. How to do 122 /* Get a LoadedApk or ActivityThread.PackageInfo. How to do
123 this varies by Android version. On Android 2.3.3 and 123 this varies by Android version. On Android 3.0 and earlier,
124 earlier, there is no ``compatibilityInfo'' argument to 124 there is no ``compatibilityInfo'' argument to
125 getPackageInfo. */ 125 getPackageInfo. */
126 126
127 if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) 127 try
128 { 128 {
129 method 129 method
130 = activityThreadClass.getMethod ("getPackageInfo", 130 = activityThreadClass.getMethod ("getPackageInfo",
@@ -134,7 +134,7 @@ public final class EmacsNoninteractive
134 (Context.CONTEXT_INCLUDE_CODE 134 (Context.CONTEXT_INCLUDE_CODE
135 | Context.CONTEXT_IGNORE_SECURITY)); 135 | Context.CONTEXT_IGNORE_SECURITY));
136 } 136 }
137 else 137 catch (NoSuchMethodException exception)
138 { 138 {
139 compatibilityInfoClass 139 compatibilityInfoClass
140 = Class.forName ("android.content.res.CompatibilityInfo"); 140 = Class.forName ("android.content.res.CompatibilityInfo");