From 31200d3e02015c5355e713024fb0277371024bc8 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Thu, 19 Sep 2024 01:30:21 +0800 Subject: [PATCH] Fix pixel live photos not playing when taken with JPG+RAW --- app/lib/live_photo_util.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/live_photo_util.dart b/app/lib/live_photo_util.dart index 1c8cf3aa..7fc46163 100644 --- a/app/lib/live_photo_util.dart +++ b/app/lib/live_photo_util.dart @@ -5,6 +5,10 @@ LivePhotoType? getLivePhotoTypeFromFile(FileDescriptor file) { final filenameL = file.filename.toLowerCase(); if (filenameL.startsWith("pxl_") && filenameL.endsWith(".mp.jpg")) { return LivePhotoType.googleMp; + } else if (filenameL.startsWith("pxl_") && + filenameL.endsWith(".mp.cover.jpg")) { + // RAW + return LivePhotoType.googleMp; } else if (filenameL.startsWith("mvimg_") && filenameL.endsWith(".jpg")) { return LivePhotoType.googleMvimg; } else {