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 { |     } else { | ||||||
|       await checkRequestNotificationPermission(); |       await checkRequestNotificationPermission(); | ||||||
|  |       if (!await AndroidPermissionManager.check(kManageExternalStorage)) { | ||||||
|  |         await AndroidPermissionManager.request(kManageExternalStorage); | ||||||
|  |       } | ||||||
|       final res = await parent.target?.dialogManager |       final res = await parent.target?.dialogManager | ||||||
|           .show<bool>((setState, close, context) { |           .show<bool>((setState, close, context) { | ||||||
|         submit() => close(true); |         submit() => close(true); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user