Skip to content

Commit

Permalink
Fix - Multiple selection: Deselecting an item should be two taps
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Jan 2, 2019
1 parent 3835591 commit 49d2d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Pages/Gallery/YPLibraryVC+CollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ extension YPLibraryVC: UICollectionViewDelegate {
if multipleSelectionEnabled {

let cellIsInTheSelectionPool = isInSelectionPool(indexPath: indexPath)
let cellIsCurrentlySelected = selection.contains { $0.assetIdentifier == mediaManager.fetchResult[indexPath.row].localIdentifier }
let cellIsCurrentlySelected = previouslySelectedIndexPath.row == currentlySelectedIndex

if cellIsInTheSelectionPool {
if cellIsCurrentlySelected {
Expand Down

0 comments on commit 49d2d9d

Please sign in to comment.