π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: show video description in previews for android
Prateek Sunalf36666bd0a97
diff --git a/mobile/lib/ui/viewer/file/video_widget_native.dart b/mobile/lib/ui/viewer/file/video_widget_native.dartindex d534b8f677..65fb1ecb0f 100644--- a/mobile/lib/ui/viewer/file/video_widget_native.dart+++ b/mobile/lib/ui/viewer/file/video_widget_native.dart@@ -328,13 +328,13 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>child: Column(crossAxisAlignment: CrossAxisAlignment.center,children: [- if (!widget.selectedPreview)- _VideoDescriptionAndSwitchToMediaKitButton(- file: widget.file,- showControls: _showControls,- elTooltipController: _elTooltipController,- controller: _controller,- ),+ _VideoDescriptionAndSwitchToMediaKitButton(+ file: widget.file,+ showControls: _showControls,+ elTooltipController: _elTooltipController,+ controller: _controller,+ selectedPreview: widget.selectedPreview,+ ),ValueListenableBuilder(valueListenable: _showControls,builder: (context, value, _) {@@ -736,12 +736,14 @@ class _VideoDescriptionAndSwitchToMediaKitButton extends StatelessWidget {final ValueNotifier<bool> showControls;final ElTooltipController elTooltipController;final NativeVideoPlayerController? controller;+ final bool selectedPreview;const _VideoDescriptionAndSwitchToMediaKitButton({required this.file,required this.showControls,required this.elTooltipController,required this.controller,+ required this.selectedPreview,});@override@@ -777,7 +779,7 @@ class _VideoDescriptionAndSwitchToMediaKitButton extends StatelessWidget {),): const SizedBox.shrink(),- Platform.isAndroid+ Platform.isAndroid && !selectedPreview? ValueListenableBuilder(valueListenable: showControls,builder: (context, value, _) {