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

Commit 7e326a86 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Wire thumbnails in archives in ExternalStorageProvider.

Bug: 20176812
Change-Id: Ibf421df1c26583b4b7c3a8516eac79ea0ef31ec3
parent c1f9e7c4
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);
    }