Merge "Fix crash in isChildDocument when parent is in zip, and child not." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1f67c8740c
@@ -391,6 +391,10 @@ public class ExternalStorageProvider extends DocumentsProvider {
|
|||||||
if (mArchiveHelper.isArchivedDocument(docId)) {
|
if (mArchiveHelper.isArchivedDocument(docId)) {
|
||||||
return mArchiveHelper.isChildDocument(parentDocId, docId);
|
return mArchiveHelper.isChildDocument(parentDocId, docId);
|
||||||
}
|
}
|
||||||
|
// Archives do not contain regular files.
|
||||||
|
if (mArchiveHelper.isArchivedDocument(parentDocId)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
final File parent = getFileForDocId(parentDocId).getCanonicalFile();
|
final File parent = getFileForDocId(parentDocId).getCanonicalFile();
|
||||||
final File doc = getFileForDocId(docId).getCanonicalFile();
|
final File doc = getFileForDocId(docId).getCanonicalFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user