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

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

Merge "Prefer visiblePath if available" into rvc-dev am: d29f6483 am: 05719b5e

Change-Id: I6cfc274b3cb0cfae6574f7e5e77cd2b2f99f8e2e
parents feb3a3a1 05719b5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -433,7 +433,7 @@ public class ExternalStorageProvider extends FileSystemProvider {
        final int splitIndex = docId.indexOf(':', 1);
        final int splitIndex = docId.indexOf(':', 1);
        final String path = docId.substring(splitIndex + 1);
        final String path = docId.substring(splitIndex + 1);


        File target = visible ? root.visiblePath : root.path;
        File target = root.visiblePath != null ? root.visiblePath : root.path;
        if (target == null) {
        if (target == null) {
            return null;
            return null;
        }
        }