mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08: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
@ -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…
Reference in New Issue
Block a user