Merge "Use visible path for search documents" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c90652b28
@@ -577,8 +577,11 @@ public class ExternalStorageProvider extends FileSystemProvider {
|
|||||||
public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs)
|
public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs)
|
||||||
throws FileNotFoundException {
|
throws FileNotFoundException {
|
||||||
final File parent;
|
final File parent;
|
||||||
|
|
||||||
synchronized (mRootsLock) {
|
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);
|
return querySearchDocuments(parent, projection, Collections.emptySet(), queryArgs);
|
||||||
|
|||||||
Reference in New Issue
Block a user