We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bab809 commit a670cb9Copy full SHA for a670cb9
Assets/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs
@@ -584,6 +584,10 @@ private void InitializeQuickLinks()
584
if( generateQuickLinksForDrives )
585
{
586
#if !UNITY_EDITOR && UNITY_ANDROID
587
+ // Fetching the list of external drives is only possible with the READ_EXTERNAL_STORAGE permission granted on Android
588
+ if( AskPermissions )
589
+ RequestPermission();
590
+
591
string drivesList = FileBrowserHelpers.AJC.CallStatic<string>( "GetExternalDrives" );
592
if( drivesList != null && drivesList.Length > 0 )
593
0 commit comments