File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ android/*.iml
29
29
android /local.properties
30
30
android /.settings
31
31
android /.project
32
+ Session.vim
Original file line number Diff line number Diff line change @@ -737,7 +737,12 @@ + (BOOL)requiresMainQueueSetup
737
737
CGSize size = CGSizeMake (width, height);
738
738
739
739
NSURL * url = [NSURL URLWithString: imageUri];
740
- PHFetchResult *results = [PHAsset fetchAssetsWithALAssetURLs: @[url] options: nil ];
740
+ PHFetchResult *results = nil ;
741
+ if ([url.scheme isEqualToString: @" ph" ]) {
742
+ results = [PHAsset fetchAssetsWithLocalIdentifiers: @[url] options: nil ];
743
+ } else {
744
+ results = [PHAsset fetchAssetsWithALAssetURLs: @[url] options: nil ];
745
+ }
741
746
742
747
if (results.count == 0 ) {
743
748
NSString *errorText = [NSString stringWithFormat: @" Failed to fetch PHAsset with local identifier %@ with no error message." , imageUri];
You can’t perform that action at this time.
0 commit comments