Merge "Use visible path for search documents" into rvc-dev am: 1c90652b28 am: 1221584792
Change-Id: I1e789565756dbc97a2ffd43146d3d1240d794046
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