Skip to content

Commit 07e5c14

Browse files
authored
Merge pull request #9 from TryFetch/kylef/download-pip
Support restoring from PIP from watching from the downloads tab
2 parents b0c39d2 + 0e965ea commit 07e5c14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Fetch/DownloadsTableViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ class DownloadsTableViewController: UITableViewController, DownloaderDelegate {
169169

170170
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
171171
if let vc = segue.destinationViewController as? AVPlayerViewController, let file = sender as? String {
172-
172+
vc.delegate = PlayerDelegate.sharedInstance
173+
173174
let documentsUrl = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask).first!
174175
let fileUrl = documentsUrl.URLByAppendingPathComponent(file)
175176

0 commit comments

Comments
 (0)