Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: duration

Prateek Sunalaeac72e35c86
diff --git a/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
index e302c1a543..3db50bef8e 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/native_video_player_controls/seek_bar.dart
@@ -122,7 +122,7 @@ class _SeekBarState extends State<SeekBar> with SingleTickerProviderStateMixin {
if (!mounted) {
return;
}
- if (widget.duration != null) {
+ if (widget.duration != null || widget.duration! > 0) {
unawaited(
_animationController.animateTo(
(1 / widget.duration!),