mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-12 19:06:13 +02:00
android request external stroage when start service for log (#8161)
This will not influence file transfer permission. Requesting external storage permissions does not turn on file transfer permissions, and turning off file transfer permissions does not turn off external storage permissions. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
c7308dbbc9
commit
fcece3732c
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,9 @@ class ServerModel with ChangeNotifier {
|
|||
}
|
||||
} else {
|
||||
await checkRequestNotificationPermission();
|
||||
if (!await AndroidPermissionManager.check(kManageExternalStorage)) {
|
||||
await AndroidPermissionManager.request(kManageExternalStorage);
|
||||
}
|
||||
final res = await parent.target?.dialogManager
|
||||
.show<bool>((setState, close, context) {
|
||||
submit() => close(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue