Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tilltue committed Jul 11, 2017
1 parent d5c3f85 commit 61d66bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ extension TLPhotosPickerViewController: UITableViewDelegate,UITableViewDataSourc
cell.thumbImageView.image = collection.thumbnail
cell.titleLabel.text = collection.title
cell.subTitleLabel.text = "\(collection.count)"
if let phAsset = collection.getAsset(at: 0), collection.thumbnail == nil {
if let phAsset = collection.getAsset(at: collection.useCameraButton ? 1 : 0), collection.thumbnail == nil {
let scale = UIScreen.main.scale
let size = CGSize(width: 80*scale, height: 80*scale)
self.photoLibrary.imageAsset(asset: phAsset, size: size, completionBlock: { [weak cell] image in
Expand Down

0 comments on commit 61d66bc

Please sign in to comment.