|
@@ -1,4 +1,3 @@
|
|
|
-
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
import 'package:path/path.dart';
|
|
|
import 'package:photo_manager/photo_manager.dart';
|
|
@@ -59,7 +58,8 @@ class File {
|
|
|
type = FileType.image;
|
|
|
// PHAssetMediaSubtype.photoLive.rawValue is 8
|
|
|
// This hack should go away once photos_manager support livePhotos
|
|
|
- if (asset.subTypes != null &&
|
|
|
+ if (kDebugMode &&
|
|
|
+ asset.subTypes != null &&
|
|
|
asset.subTypes > -1 &&
|
|
|
(asset.subTypes & 8) != 0) {
|
|
|
type = FileType.livePhoto;
|