Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e808f96a authored by Diksha Gohlyan's avatar Diksha Gohlyan
Browse files

Use visiblePath instead of path for findDocumentPath

Test: atest DocumentsUIGoogleTests
Bug: 158142289

Change-Id: Id46ac014ad87af052b684e21b9242f762d7db80a
parent a8e80822
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -520,8 +520,10 @@ public class ExternalStorageProvider extends FileSystemProvider {
        final RootInfo root = resolvedDocId.first;
        File child = resolvedDocId.second;

        final File rootFile = root.visiblePath != null ? root.visiblePath
                : root.path;
        final File parent = TextUtils.isEmpty(parentDocId)
                        ? root.path
                ? rootFile
                : getFileForDocId(parentDocId);

        return new Path(parentDocId == null ? root.rootId : null, findDocumentPath(parent, child));