This repository was archived by the owner on May 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ public static partial class FilePicker
11
11
{
12
12
static async Task < IEnumerable < FileResult > > PlatformPickAsync ( PickOptions options , bool allowMultiple = false )
13
13
{
14
- // we only need the permission when accessing the file, but it's more natural
15
- // to ask the user first, then show the picker.
16
- await Permissions . EnsureGrantedAsync < Permissions . StorageRead > ( ) ;
17
-
18
14
// Essentials supports >= API 19 where this action is available
19
15
var action = Intent . ActionOpenDocument ;
20
16
Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ static Task<FileResult> PlatformPickVideoAsync(MediaPickerOptions options)
20
20
21
21
static async Task < FileResult > PlatformPickAsync ( MediaPickerOptions options , bool photo )
22
22
{
23
- // We only need the permission when accessing the file, but it's more natural
24
- // to ask the user first, then show the picker.
25
- await Permissions . EnsureGrantedAsync < Permissions . StorageRead > ( ) ;
26
-
27
23
var intent = new Intent ( Intent . ActionGetContent ) ;
28
24
intent . SetType ( photo ? FileSystem . MimeTypes . ImageAll : FileSystem . MimeTypes . VideoAll ) ;
29
25
You can’t perform that action at this time.
0 commit comments