From 1af15c6ff1a9905b702e384c9d5ab1e8689931cc Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 3 May 2023 13:03:45 +0530 Subject: [PATCH] Show icon for motion photo --- lib/ui/viewer/file/thumbnail_widget.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui/viewer/file/thumbnail_widget.dart b/lib/ui/viewer/file/thumbnail_widget.dart index e5b787465..f66335045 100644 --- a/lib/ui/viewer/file/thumbnail_widget.dart +++ b/lib/ui/viewer/file/thumbnail_widget.dart @@ -111,8 +111,9 @@ class _ThumbnailWidgetState extends State { } if (widget.file!.fileType == FileType.video) { contentChildren.add(const VideoOverlayIcon()); - } else if (widget.file!.fileType == FileType.livePhoto && - widget.shouldShowLivePhotoOverlay) { + } else if (widget.shouldShowLivePhotoOverlay && + (widget.file!.fileType == FileType.livePhoto || + ((widget.file!.pubMagicMetadata?.mvi ?? 0) > 0))) { contentChildren.add(const LivePhotoOverlayIcon()); } if (widget.shouldShowOwnerAvatar) {