Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #1467: Display a QuickLook preview when tapping a downloaded file #1978

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

kylehickinson
Copy link
Collaborator

@kylehickinson kylehickinson commented Nov 18, 2019

Falls back to previous logic if the QuickLook service isn't able to preview the document type

Summary of Changes

This pull request fixes issue #1467

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

  • Download a PDF, and maybe some images (also can just place them into the app's Download folder from Files app)
  • Open Downloads menu and click on said documents
  • Verify that the correct preview appears

Screenshots:

Examples:

PDF Image
IMG_4D25B1111F18-2 IMG_DC9D8E6F03C3-1

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).

Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One code change + few other concerns shared on slack

}
}

class PreviewingDataSource: NSObject, QLPreviewControllerDataSource {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make private

Falls back to previous logic if the QuickLook service isn't able to preview the document type
@kylehickinson kylehickinson merged commit a1fadbd into development Nov 18, 2019
@kylehickinson kylehickinson deleted the preview-downloads branch November 18, 2019 19:01
@iccub iccub modified the milestone: 1.14 Nov 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants