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

Commit c263ebed authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Merge "Use visiblePath instead of path for findDocumentPath" into rvc-dev am: e4458720

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11815146

Change-Id: I81be60619b477a6813bf566d8b916523970ee3db
parents 19163dc2 e4458720
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));