mirror of
https://github.com/readest/readest.git
synced 2026-04-29 12:00:49 +00:00
feat: request manage external storage permission when changing data directory to sdcard root on Android (#2142)
This commit is contained in:
parent
0a1e0212e2
commit
1d4541e353
20 changed files with 357 additions and 30 deletions
|
|
@ -126,3 +126,10 @@ pub(crate) async fn get_safe_area_insets<R: Runtime>(
|
|||
) -> Result<GetSafeAreaInsetsResponse> {
|
||||
app.native_bridge().get_safe_area_insets()
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn request_manage_storage_permission<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
) -> Result<RequestManageStoragePermissionResponse> {
|
||||
app.native_bridge().request_manage_storage_permission()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue