2
0

Merge branch 'crashlytics-196'

This commit is contained in:
Maarten Billemont 2014-06-05 22:41:44 -04:00
commit c4dca14800

View File

@ -99,9 +99,10 @@
- (MPPasswordLargeCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { - (MPPasswordLargeCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
MPPasswordLargeCell *cell; MPPasswordLargeCell *cell;
if (indexPath.item == 0) if (!self.transientSite && indexPath.item == 0) {
cell = [MPPasswordLargeDeleteCell dequeueCellFromCollectionView:collectionView atIndexPath:indexPath]; cell = [MPPasswordLargeDeleteCell dequeueCellFromCollectionView:collectionView atIndexPath:indexPath];
else [cell updateWithElement:self.mainElement];
} else {
cell = [MPPasswordLargeCell dequeueCellWithType:[self typeForContentIndexPath:indexPath] fromCollectionView:collectionView cell = [MPPasswordLargeCell dequeueCellWithType:[self typeForContentIndexPath:indexPath] fromCollectionView:collectionView
atIndexPath:indexPath]; atIndexPath:indexPath];
@ -111,6 +112,7 @@
[cell updateWithTransientSite:self.transientSite]; [cell updateWithTransientSite:self.transientSite];
else else
[cell updateWithElement:self.mainElement]; [cell updateWithElement:self.mainElement];
}
if (_scrolling) if (_scrolling)
[cell willBeginDragging]; [cell willBeginDragging];