Skip to content

Commit

Permalink
🐛 [iOS] Improve Live-Photos filtering (#772)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Li <[email protected]>
  • Loading branch information
yu840915 and AlexV525 authored May 30, 2022
1 parent 332a4fd commit d517616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Improvements:
- Correct `PermissionRequestOption` typo with a class type alias.
Which also raised the Dart SDK constraint to `2.13.0`.
- Catch throwables when reading EXIF.
- Improve Live-Photos filtering.

## 2.1.1

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/core/PMManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ - (PHFetchOptions *)getAssetOptions:(int)type filterOption:(PMFilterOptionGroup
} else if (!optionGroup.containsLivePhotos) {
[cond appendString:@" AND "];
[cond appendString:[NSString
stringWithFormat:@"( ( mediaSubtype & %lu ) != 8 )",
stringWithFormat:@"NOT ( ( mediaSubtype & %lu ) == 8 )",
(unsigned long)PHAssetMediaSubtypePhotoLive]
];
}
Expand Down

0 comments on commit d517616

Please sign in to comment.