diff --git a/Sources/Linaris/LocalFilesPage.xaml.cs b/Sources/Linaris/LocalFilesPage.xaml.cs index 8777e67..a550e0c 100644 --- a/Sources/Linaris/LocalFilesPage.xaml.cs +++ b/Sources/Linaris/LocalFilesPage.xaml.cs @@ -65,19 +65,24 @@ public partial class LocalFilesPage : ContentPage { var results = await FilePicker.PickMultipleAsync(new PickOptions { - PickerTitle = "Choisissez des nouveaux titres !", FileTypes = new FilePickerFileType( new Dictionary> { { DevicePlatform.WinUI, new [] { "*.mp3", "*.m4a" } }, - { DevicePlatform.Android, new [] { "*.mp3", ".3gp", ".mp4", ".m4a", ".aac", ".ts", ".amr", ".flac", ".mid", ".xmf", ".mxmf", ".rtttl", ".rtx", ".ota", ".imy", ".mkv", ".ogg", ".wav" } }, + { DevicePlatform.Android, new [] { "audio/*" } }, { DevicePlatform.iOS, new[] { "*.mp3", "*.aac", "*.aifc", "*.au", "*.aiff", "*.mp2", "*.3gp", "*.ac3" } } }) }); - - if (results == null) - { - return; + try + { + if (results.First() == null) + { + return; + } + } + catch (Exception ex) + { + return; } if (sender is Button button) diff --git a/Sources/Linaris/Platforms/Android/AndroidManifest.xml b/Sources/Linaris/Platforms/Android/AndroidManifest.xml index ec020fe..6a26cc6 100644 --- a/Sources/Linaris/Platforms/Android/AndroidManifest.xml +++ b/Sources/Linaris/Platforms/Android/AndroidManifest.xml @@ -3,6 +3,11 @@ - - + + + + + + + \ No newline at end of file