Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7335d430 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski Committed by Android (Google) Code Review
Browse files

Merge "Wire thumbnails in archives in ExternalStorageProvider."

parents 39d1f664 7e326a86
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -579,6 +579,10 @@ public class ExternalStorageProvider extends DocumentsProvider {
    public AssetFileDescriptor openDocumentThumbnail(
            String documentId, Point sizeHint, CancellationSignal signal)
            throws FileNotFoundException {
        if (mArchiveHelper.isArchivedDocument(documentId)) {
            return mArchiveHelper.openDocumentThumbnail(documentId, sizeHint, signal);
        }

        final File file = getFileForDocId(documentId);
        return DocumentsContract.openImageThumbnail(file);
    }