]> git.eshelyaron.com Git - emacs.git/commit
Offer to grant storage permissions if absent
authorPo Lu <luangruo@yahoo.com>
Sat, 18 Nov 2023 06:15:55 +0000 (14:15 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 18 Nov 2023 06:15:55 +0000 (14:15 +0800)
commit669e754f5bdc9f9130a68eec6966babe9a85ecae
tree718d7fe3517a79ae69ed3380cd86e0f8c4716621
parent05213345c04d4572afec46b99a58d206a111c846
Offer to grant storage permissions if absent

* java/org/gnu/emacs/EmacsService.java (externalStorageAvailable)
(requestStorageAccess23, requestStorageAccess30)
(requestStorageAccess): New functions.

* lisp/startup.el (fancy-startup-tail, normal-splash-screen):
Call android-win functions for inserting the new storage
permission notice.

* lisp/term/android-win.el
(android-display-storage-permission-popup)
(android-after-splash-screen): New functions.

* src/android.c (android_init_emacs_service): Link to new Java
functions.
(android_external_storage_available_p)
(android_request_storage_access): New functions.

* src/android.h: Update prototypes.

* src/androidfns.c (Fandroid_external_storage_available_p)
(Fandroid_request_storage_access): New functions.
(syms_of_androidfns): Register new subrs.
java/org/gnu/emacs/EmacsService.java
lisp/startup.el
lisp/term/android-win.el
src/android.c
src/android.h
src/androidfns.c