Skip to content

Commit a670cb9

Browse files
committed
Fixed #18
1 parent 9bab809 commit a670cb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/Plugins/SimpleFileBrowser/Scripts/FileBrowser.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,10 @@ private void InitializeQuickLinks()
584584
if( generateQuickLinksForDrives )
585585
{
586586
#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+
587591
string drivesList = FileBrowserHelpers.AJC.CallStatic<string>( "GetExternalDrives" );
588592
if( drivesList != null && drivesList.Length > 0 )
589593
{

0 commit comments

Comments
 (0)