fix: download feedback (#22178)

* fix: download feedback

* chore: use FAB for asset viewer as well
This commit is contained in:
Alex
2025-09-19 00:47:01 -05:00
committed by GitHub
parent 642065f506
commit 33d76fb386
10 changed files with 185 additions and 42 deletions

View File

@@ -90,7 +90,11 @@ class DownloadRepository {
final isVideo = asset.isVideo;
final url = getOriginalUrlForRemoteId(id);
if (Platform.isAndroid || livePhotoVideoId == null || isVideo) {
// on iOS it cannot link the image, check if the filename has .MP extension
// to avoid downloading the video part
final isAndroidMotionPhoto = asset.name.contains(".MP");
if (Platform.isAndroid || livePhotoVideoId == null || isVideo || isAndroidMotionPhoto) {
tasks[taskIndex++] = DownloadTask(
taskId: id,
url: url,