Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix native seek bar type error

Neeraj Gupta459552418b72
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 60a9b2846a..7df748e1f2 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
@@ -173,6 +173,9 @@ class _SeekBarState extends State<SeekBar> with SingleTickerProviderStateMixin {
if (target == 0) {
await Future.delayed(const Duration(milliseconds: 450));
}
+ if (!mounted) {
+ return;
+ }
final duration = widget.controller.videoInfo?.durationInMilliseconds;
final double fractionTarget =