Merge "Use visiblePath instead of path for findDocumentPath" into rvc-dev am: e445872013
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11815146 Change-Id: If2115b152fb5242430e4645d224990f95b912bd0
This commit is contained in:
@@ -520,9 +520,11 @@ public class ExternalStorageProvider extends FileSystemProvider {
|
|||||||
final RootInfo root = resolvedDocId.first;
|
final RootInfo root = resolvedDocId.first;
|
||||||
File child = resolvedDocId.second;
|
File child = resolvedDocId.second;
|
||||||
|
|
||||||
|
final File rootFile = root.visiblePath != null ? root.visiblePath
|
||||||
|
: root.path;
|
||||||
final File parent = TextUtils.isEmpty(parentDocId)
|
final File parent = TextUtils.isEmpty(parentDocId)
|
||||||
? root.path
|
? rootFile
|
||||||
: getFileForDocId(parentDocId);
|
: getFileForDocId(parentDocId);
|
||||||
|
|
||||||
return new Path(parentDocId == null ? root.rootId : null, findDocumentPath(parent, child));
|
return new Path(parentDocId == null ? root.rootId : null, findDocumentPath(parent, child));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user