Skip to content

Commit

Permalink
Fix based on suggestion in nek023#171
Browse files Browse the repository at this point in the history
  • Loading branch information
knutigro committed Nov 7, 2016
1 parent 974782f commit b7b2a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QBImagePicker/QBAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ - (void)photoLibraryDidChange:(PHChange *)changeInstance
}

if ([changedIndexes count]) {
[self.collectionView reloadItemsAtIndexPaths:[changedIndexes qb_indexPathsFromIndexesWithSection:0]];
NSMutableIndexSet *changedWithoutRemovalsIndexes = [changedIndexes mutableCopy];
[changedWithoutRemovalsIndexes removeIndexes:removedIndexes];
[self.collectionView reloadItemsAtIndexPaths:[changedWithoutRemovalsIndexes qb_indexPathsFromIndexesWithSection:0]];
}
} completion:NULL];
}
Expand Down

0 comments on commit b7b2a9b

Please sign in to comment.