aboutsummaryrefslogtreecommitdiffstats
path: root/src/android.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/android.c')
-rw-r--r--src/android.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/android.c b/src/android.c
index 5850b6079c9..4e9897f4648 100644
--- a/src/android.c
+++ b/src/android.c
@@ -2286,7 +2286,7 @@ android_init_emacs_service (void)
2286 FIND_METHOD (get_screen_height, "getScreenHeight", "(Z)I"); 2286 FIND_METHOD (get_screen_height, "getScreenHeight", "(Z)I");
2287 FIND_METHOD (detect_mouse, "detectMouse", "()Z"); 2287 FIND_METHOD (detect_mouse, "detectMouse", "()Z");
2288 FIND_METHOD (name_keysym, "nameKeysym", "(I)Ljava/lang/String;"); 2288 FIND_METHOD (name_keysym, "nameKeysym", "(I)Ljava/lang/String;");
2289 FIND_METHOD (browse_url, "browseUrl", "(Ljava/lang/String;)" 2289 FIND_METHOD (browse_url, "browseUrl", "(Ljava/lang/String;Z)"
2290 "Ljava/lang/String;"); 2290 "Ljava/lang/String;");
2291 FIND_METHOD (restart_emacs, "restartEmacs", "()V"); 2291 FIND_METHOD (restart_emacs, "restartEmacs", "()V");
2292 FIND_METHOD (update_ic, "updateIC", 2292 FIND_METHOD (update_ic, "updateIC",
@@ -6959,12 +6959,15 @@ android_project_image_nearest (struct android_image *image,
6959 6959
6960/* Other miscellaneous functions. */ 6960/* Other miscellaneous functions. */
6961 6961
6962/* Ask the system to start browsing the specified encoded URL. Upon 6962/* Ask the system to start browsing the specified URL. Upon failure,
6963 failure, return a string describing the error. Else, value is 6963 return a string describing the error. Else, value is nil. URL
6964 nil. */ 6964 should be encoded unless SEND.
6965
6966 If SEND, open the URL with applications that can ``send'' or
6967 ``share'' the URL (through mail, for example.) */
6965 6968
6966Lisp_Object 6969Lisp_Object
6967android_browse_url (Lisp_Object url) 6970android_browse_url (Lisp_Object url, Lisp_Object send)
6968{ 6971{
6969 jobject value, string; 6972 jobject value, string;
6970 Lisp_Object tem; 6973 Lisp_Object tem;
@@ -6974,7 +6977,8 @@ android_browse_url (Lisp_Object url)
6974 value = (*android_java_env)->CallObjectMethod (android_java_env, 6977 value = (*android_java_env)->CallObjectMethod (android_java_env,
6975 emacs_service, 6978 emacs_service,
6976 service_class.browse_url, 6979 service_class.browse_url,
6977 string); 6980 string,
6981 (jboolean) !NILP (send));
6978 android_exception_check (); 6982 android_exception_check ();
6979 6983
6980 ANDROID_DELETE_LOCAL_REF (string); 6984 ANDROID_DELETE_LOCAL_REF (string);