فهرست منبع

fix: not able to play some HEIC motion photos on android

ashilkn 1 سال پیش
والد
کامیت
9f4e77c038
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      lib/utils/file_util.dart

+ 1 - 4
lib/utils/file_util.dart

@@ -174,8 +174,6 @@ Future<File?> getFileFromServer(
   return _fileDownloadsInProgress[downloadID];
 }
 
-
-
 Future<bool> isFileCached(EnteFile file, {bool liveVideo = false}) async {
   final cacheManager = (file.fileType == FileType.video || liveVideo)
       ? VideoCacheManager.instance
@@ -301,8 +299,7 @@ Future<File?> _downloadAndCache(
     final decryptedFilePath = decryptedFile.path;
     final String fileExtension = getExtension(file.title ?? '');
     File outputFile = decryptedFile;
-    if ((fileExtension == "unknown" && file.fileType == FileType.image) ||
-        (Platform.isAndroid && fileExtension == "heic")) {
+    if ((fileExtension == "unknown" && file.fileType == FileType.image)) {
       final compressResult = await FlutterImageCompress.compressAndGetFile(
         decryptedFilePath,
         decryptedFilePath + ".jpg",