Selaa lähdekoodia

Local merged videos should now play locally instead of loading remote (#3521)

martyfuhry 2 vuotta sitten
vanhempi
commit
fb6591607f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      mobile/lib/modules/asset_viewer/views/video_viewer_page.dart

+ 1 - 1
mobile/lib/modules/asset_viewer/views/video_viewer_page.dart

@@ -34,7 +34,7 @@ class VideoViewerPage extends HookConsumerWidget {
 
   @override
   Widget build(BuildContext context, WidgetRef ref) {
-    if (asset.storage == AssetState.local && asset.livePhotoVideoId == null) {
+    if (asset.isLocal && asset.livePhotoVideoId == null) {
       final AsyncValue<File> videoFile = ref.watch(_fileFamily(asset.local!));
       return videoFile.when(
         data: (data) => VideoPlayer(