Skip to content

Commit

Permalink
Bug Fixed #236
Browse files Browse the repository at this point in the history
  • Loading branch information
wade-hawk committed Jan 27, 2020
1 parent b46004e commit 963ce72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ open class TLPhotosPickerViewController: UIViewController {
}
if
var index = self.focusedCollection?.fetchResult?.index(of: phAsset),
let focused = self.focusedCollection,
index != NSNotFound
{
index += (getfocusedIndex() == 0 && self.configure.usedCameraButton) ? 1 : 0
index += (focused.useCameraButton) ? 1 : 0
self.collectionView.reloadItems(at: [IndexPath(row: index, section: 0)])
}
}
Expand Down

0 comments on commit 963ce72

Please sign in to comment.