This repository was archived by the owner on Jun 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed
Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ _None._
4848
4949_ None._
5050
51+ ## 1.8.10
52+
53+ ### Bug Fixes
54+
55+ - Fix WPMediaPickerViewController crash when reloading collection view items [ #414 ]
56+
5157## 1.8.9
5258
5359### Bug Fixes
Original file line number Diff line number Diff line change 11PODS:
2- - WPMediaPicker (1.8.9 -beta.1)
2+ - WPMediaPicker (1.8.10 -beta.1)
33
44DEPENDENCIES:
55 - WPMediaPicker (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99 :path: "../"
1010
1111SPEC CHECKSUMS:
12- WPMediaPicker: 0ef7f4abcbff7ad20e271e7d09586e32924f5785
12+ WPMediaPicker: d669d11c38f78597edcb338a58a0d973ae51912a
1313
1414PODFILE CHECKSUM: 31590cb12765a73c9da27d6ea5b8b127c095d71d
1515
Original file line number Diff line number Diff line change @@ -773,11 +773,16 @@ - (void)updateDataWithRemoved:(NSIndexSet *)removed inserted:(NSIndexSet *)inser
773773 return ;
774774 }
775775 [weakSelf refreshSelection ];
776- // Reloading the changed items here rather than in the batch update block above to fix this issue:
777- // https://github.com/wordpress-mobile/WordPress-iOS/issues/19505
778- NSMutableSet <NSIndexPath *> *indexPaths = [NSMutableSet setWithArray: [weakSelf indexPathsFromIndexSet: changed section: 0 ]];
779- [indexPaths addObjectsFromArray: weakSelf.collectionView.indexPathsForSelectedItems];
780- [weakSelf.collectionView reloadItemsAtIndexPaths: [indexPaths allObjects ]];
776+
777+ @try {
778+ // Reloading the changed items here rather than in the batch update block above to fix this issue:
779+ // https://github.com/wordpress-mobile/WordPress-iOS/issues/19505
780+ NSMutableSet <NSIndexPath *> *indexPaths = [NSMutableSet setWithArray: [weakSelf indexPathsFromIndexSet: changed section: 0 ]];
781+ [indexPaths addObjectsFromArray: weakSelf.collectionView.indexPathsForSelectedItems];
782+ [weakSelf.collectionView reloadItemsAtIndexPaths: [indexPaths allObjects ]];
783+ } @catch (NSException *exception) {
784+ [weakSelf.collectionView reloadData ];
785+ }
781786 }];
782787
783788}
Original file line number Diff line number Diff line change 22
33Pod ::Spec . new do |s |
44 s . name = 'WPMediaPicker'
5- s . version = '1.8.9 -beta.1'
5+ s . version = '1.8.10 -beta.1'
66
77 s . summary = 'WPMediaPicker is an iOS controller that allows capture and picking of media assets.'
88 s . description = <<-DESC
You can’t perform that action at this time.
0 commit comments