This repository was archived by the owner on Jun 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,9 @@ - (void)updateDataWithRemoved:(NSIndexSet *)removed inserted:(NSIndexSet *)inser
688688 if ([inserted count ] > 0 ) {
689689 [self .collectionView insertItemsAtIndexPaths: [self indexPathsFromIndexSet: inserted section: 0 ]];
690690 }
691+ if ([changed count ] > 0 ) {
692+ [self .collectionView reloadItemsAtIndexPaths: [self indexPathsFromIndexSet: changed section: 0 ]];
693+ }
691694 for (id <WPMediaMove> move in moves) {
692695 [self .collectionView moveItemAtIndexPath: [NSIndexPath indexPathForItem: [move from ] inSection: 0 ]
693696 toIndexPath: [NSIndexPath indexPathForItem: [move to ] inSection: 0 ]];
@@ -697,9 +700,7 @@ - (void)updateDataWithRemoved:(NSIndexSet *)removed inserted:(NSIndexSet *)inser
697700 }
698701 } completion: ^(BOOL finished) {
699702 [weakSelf refreshSelection ];
700- NSMutableSet <NSIndexPath *> *indexPaths = [NSMutableSet setWithArray: [weakSelf indexPathsFromIndexSet: changed section: 0 ]];
701- [indexPaths addObjectsFromArray: weakSelf.collectionView.indexPathsForSelectedItems];
702- [weakSelf.collectionView reloadItemsAtIndexPaths: [indexPaths allObjects ]];
703+ [weakSelf.collectionView reloadItemsAtIndexPaths: weakSelf.collectionView.indexPathsForSelectedItems];
703704 }];
704705
705706}
You can’t perform that action at this time.
0 commit comments