You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Project Manager, when I press the Import button, the File dialog is at the root and I see no file or folder. When I press on Create and cancels that popup, I can press the Import button and the File dialog shows the correct files and folders.
In the logcat, I see this error:
07-20 22:29:40.247 23290 23354 E godot : USER ERROR: Condition "id == 0" is true. Returning: ""
07-20 22:29:40.247 23290 23354 E godot : at: get_next (platform\android\dir_access_jandroid.cpp:67)
The other problem I see is when I select "SD Card" from the dropdown on the right corner, it does nothing. It always go back to "Internal shared storage". In fact, the files that are displayed in the File Dialog are from my SD Card even if "Internal shared storage is selected" so I don't known what this dropdown does exactly.
First Import press:
Second Import press after Create popup:
Steps to reproduce
Open Godot on Android
Press Import
No files or folders are displayed
Minimal reproduction project (MRP)
No project.
The text was updated successfully, but these errors were encountered:
Hilderin
changed the title
[Android] Import button does not show folder content until Create button is pressed
[Android Editor] Import button does not show folder content until Create button is pressed
Jul 21, 2024
I've seen that do while doing some tests a week or two ago.
I first thought it was a mismatch in scoped storage between a debug editor build and official release editor builds, the latter having access to Documents and the unsigned debug build being limited to app storage only.
But based on this report it seems that my hypothesis was wrong and I was just lucky to get it working in some builds and not in another.
The root cause of the issue is #94113 and I have a tentative fix in #95086. I'm not familiar with that logic however so feedback are welcome on what the best resolution path would be.
Tested versions
4.3 custom debug build from master
System information
Android 14 - Samsung A14
Issue description
In the Project Manager, when I press the
Import
button, theFile dialog
is at the root and I see no file or folder. When I press onCreate
and cancels that popup, I can press theImport
button and theFile dialog
shows the correct files and folders.In the logcat, I see this error:
The other problem I see is when I select "SD Card" from the dropdown on the right corner, it does nothing. It always go back to "Internal shared storage". In fact, the files that are displayed in the File Dialog are from my SD Card even if "Internal shared storage is selected" so I don't known what this dropdown does exactly.
First Import press:

Second Import press after Create popup:

Steps to reproduce
Minimal reproduction project (MRP)
No project.
The text was updated successfully, but these errors were encountered: