π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: aspect ratio resolution
Prateek Sunald1a5e94886ab
diff --git a/mobile/lib/ui/viewer/file/video_widget_native.dart b/mobile/lib/ui/viewer/file/video_widget_native.dartindex a660c5bfee..5da199b965 100644--- a/mobile/lib/ui/viewer/file/video_widget_native.dart+++ b/mobile/lib/ui/viewer/file/video_widget_native.dart@@ -588,6 +588,8 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>}Future<void> _setAspectRatioFromVideoProps() async {+ if (aspectRatio != null && duration != null) return;+if (widget.playlistData != null && widget.selectedPreview) {aspectRatio = widget.playlistData!.width! / widget.playlistData!.height!;if (widget.file.duration != null &&@@ -597,7 +599,6 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>_logger.info("Getting aspect ratio from preview video");return;}- if (aspectRatio != 1) return;final videoProps = await getVideoPropsAsync(File(_filePath!));if (videoProps != null) {duration = videoProps.propData?["duration"];