Use visible path for search documents
Test: atest DocumentsUIGoogleTests Bug: 155139904 Change-Id: I5454c1cc48e2d4489218b5795c98bd0f9526c6ab
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user