Browse Source

Show icon for motion photo

Neeraj Gupta 2 years ago
parent
commit
1af15c6ff1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/ui/viewer/file/thumbnail_widget.dart

+ 3 - 2
lib/ui/viewer/file/thumbnail_widget.dart

@@ -111,8 +111,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
       }
       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) {