Skip to content

Commit

Permalink
fix: Do not display unnecessary options in the Android file picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Core committed Sep 20, 2024
1 parent 6ad28bc commit 5c93669
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ public Task<IEnumerable<FileResult>> PickMultipleAsync(PickOptions? options = nu
async Task<IEnumerable<FileResult>> PlatformPickAsync(PickOptions? options, bool allowMultiple = false)
{
// Essentials supports >= API 19 where this action is available
var action = Intent.ActionGetContent;
var action = Intent.ActionOpenDocument;

var intent = new Intent(action);
intent.AddCategory(Intent.CategoryOpenable);
intent.SetType(FileMimeTypes.All);
intent.PutExtra(Intent.ExtraAllowMultiple, allowMultiple);

Expand Down

0 comments on commit 5c93669

Please sign in to comment.