feat(android): 支持 Android Motion Photo,复用 isLivePhoto 与 LIVE 角标#1367
Open
HumorSmith wants to merge 5 commits intofluttercandies:mainfrom
Open
feat(android): 支持 Android Motion Photo,复用 isLivePhoto 与 LIVE 角标#1367HumorSmith wants to merge 5 commits intofluttercandies:mainfrom
HumorSmith wants to merge 5 commits intofluttercandies:mainfrom
Conversation
HumorSmith
commented
Feb 9, 2026
- 新增 MotionPhotoUtils:通过 EXIF/XMP MicroVideo、MotionPhoto 检测 motion photo
- AssetEntity 增加 subtype 字段,motion photo 时设为与 iOS live photo 相同取值
- CursorExtensions 在构建 Asset 时检测并设置 subtype
- ConvertUtils 向 Flutter 传递 subtype
- 更新 entity 注释:Android motion photo 亦视为 isLivePhoto
- 新增 MotionPhotoUtils:通过 EXIF/XMP MicroVideo、MotionPhoto 检测 motion photo - AssetEntity 增加 subtype 字段,motion photo 时设为与 iOS live photo 相同取值 - CursorExtensions 在构建 Asset 时检测并设置 subtype - ConvertUtils 向 Flutter 传递 subtype - 更新 entity 注释:Android motion photo 亦视为 isLivePhoto Co-authored-by: Cursor <cursoragent@cursor.com>
AlexV525
requested changes
Feb 28, 2026
Member
AlexV525
left a comment
There was a problem hiding this comment.
- 移除 AIGC 注释
- 对外接口复用 Live Photo 相关命名,不使用 Motion Photo,比如
saveLivePhoto - 回滚非必要修改,比如 example 中 SDK 和
DEVELOPMENT_TEAM的配置 - 代码格式化
| } | ||
| } | ||
| // AIGC START - detect motion photo when width/height already set (no exif opened above) | ||
| if (type == MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE && !mimeType.contains("svg") && imageSubtype == 0) { |
Member
There was a problem hiding this comment.
cursor 转换时对每一张图片都进行 XMP 解码会大幅增加列表加载时长;考虑重新设计接口为异步
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.