diff --git a/app_pojavlauncher/src/main/assets/components/lwjgl3/version b/app_pojavlauncher/src/main/assets/components/lwjgl3/version index 18b03e5b5..e9907d8f1 100644 --- a/app_pojavlauncher/src/main/assets/components/lwjgl3/version +++ b/app_pojavlauncher/src/main/assets/components/lwjgl3/version @@ -1 +1 @@ -1665886806915 \ No newline at end of file +1674881685730 \ No newline at end of file diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/scoped/FolderProvider.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/scoped/FolderProvider.java index 833366df6..695968384 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/scoped/FolderProvider.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/scoped/FolderProvider.java @@ -313,6 +313,15 @@ public class FolderProvider extends DocumentsProvider { public DocumentsContract.Path findDocumentPath(@Nullable String parentDocumentId, String childDocumentId) throws FileNotFoundException { File source = BASE_DIR; if(parentDocumentId != null) source = getFileForDocId(parentDocumentId); - return new DocumentsContract.Path(getDocIdForFile(source), Collections.singletonList(childDocumentId)); + File destination = getFileForDocId(childDocumentId); + List pathIds = new ArrayList<>(); + while(!source.equals(destination) && destination != null) { + pathIds.add(getDocIdForFile(destination)); + destination = destination.getParentFile(); + } + pathIds.add(getDocIdForFile(source)); + Collections.reverse(pathIds); + Log.i("FolderProvider", pathIds.toString()); + return new DocumentsContract.Path(getDocIdForFile(source), pathIds); } } \ No newline at end of file