Przeglądaj źródła

Fix bug in displaying hint for motion photo play

Neeraj Gupta 1 rok temu
rodzic
commit
6b5eea4d9e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/ui/viewer/file/zoomable_live_image.dart

+ 2 - 2
lib/ui/viewer/file/zoomable_live_image.dart

@@ -7,6 +7,7 @@ import 'package:motion_photos/motion_photos.dart';
 import "package:photos/core/configuration.dart";
 import 'package:photos/core/constants.dart';
 import "package:photos/generated/l10n.dart";
+import "package:photos/models/file/extensions/file_props.dart";
 import 'package:photos/models/file/file.dart';
 import 'package:photos/models/file/file_type.dart';
 import "package:photos/models/metadata/file_magic.dart";
@@ -208,8 +209,7 @@ class _ZoomableLiveImageState extends State<ZoomableLiveImage>
   }
 
   void _showHintForMotionPhotoPlay() async {
-    if (widget.file.fileType != FileType.livePhoto ||
-        widget.file.pubMagicMetadata?.mvi != null) {
+    if (!_file.isLiveOrMotionPhoto) {
       return;
     }
     final preferences = await SharedPreferences.getInstance();