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

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

Merge "Use visible path for search documents" into rvc-dev am: 1c90652b am:...

Merge "Use visible path for search documents" into rvc-dev am: 1c90652b am: 12215847 am: fbd997b6 am: ad0ad64d

Change-Id: I903a79f2dce3a30983feca709ea61ad0d0375b93
parents 64d0f065 ad0ad64d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -577,8 +577,11 @@ public class ExternalStorageProvider extends FileSystemProvider {
    public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs)
            throws FileNotFoundException {
        final File parent;

        synchronized (mRootsLock) {
            parent = mRoots.get(rootId).path;
            RootInfo root = mRoots.get(rootId);
            parent = root.visiblePath != null ? root.visiblePath
                : root.path;
        }

        return querySearchDocuments(parent, projection, Collections.emptySet(), queryArgs);