error ("Android cross-compilation stub called!");
return Qnil;
#else
+ check_android_display_info (terminal);
return make_fixnum (android_get_mm_width ());
#endif
}
error ("Android cross-compilation stub called!");
return Qnil;
#else
+ check_android_display_info (terminal);
return make_fixnum (android_get_mm_height ());
#endif
}
#else
struct MonitorInfo monitor;
+ check_android_display_info (terminal);
memset (&monitor, 0, sizeof monitor);
monitor.geom.width = android_get_screen_width ();
monitor.geom.height = android_get_screen_height ();
absent these permissions. */)
(void)
{
+ /* Implement a rather undependable fallback when no GUI is
+ available. */
+ if (!android_init_gui)
+ return Ffile_accessible_directory_p (build_string ("/sdcard"));
+
return android_external_storage_available_p () ? Qt : Qnil;
}
whether Emacs has actually received such access permissions. */)
(void)
{
+ if (!android_init_gui)
+ return Qnil;
+
android_request_storage_access ();
return Qnil;
}
const char *data;
if (!android_init_gui)
- error ("No Android display connection!");
+ error ("No Android display connection");
method = clipboard_class.get_clipboard;
text
Lisp_Object value;
if (!android_init_gui)
- error ("No Android display connection!");
+ error ("No Android display connection");
CHECK_STRING (url);
value = android_browse_url (url, send);
Lisp_Object targets, tem;
if (!android_init_gui)
- error ("No Android display connection!");
+ error ("No Android display connection");
targets = Qnil;
block_input ();
char *buffer, *start;
if (!android_init_gui)
- error ("No Android display connection!");
+ error ("No Android display connection");
CHECK_STRING (type);
AUTO_STRING (default_icon, "ic_dialog_alert");
if (!android_init_gui)
- error ("No Android display connection!");
+ error ("No Android display connection");
/* Clear each variable above. */
title = body = replaces_id = group = icon = urgency = actions = Qnil;