π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Cancel timer after use
ashilkn104d98b765f4
diff --git a/mobile/lib/ui/home/loading_photos_widget.dart b/mobile/lib/ui/home/loading_photos_widget.dartindex 8f7d2f95ff..fc9938c32a 100644--- a/mobile/lib/ui/home/loading_photos_widget.dart+++ b/mobile/lib/ui/home/loading_photos_widget.dart@@ -32,6 +32,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {);final List<String> _messages = [];final _debouncer = Debouncer(const Duration(milliseconds: 500));+ late final Timer _didYouKnowTimer;@overridevoid initState() {@@ -62,7 +63,8 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {}}});- Timer.periodic(const Duration(seconds: 5), (Timer timer) {+ _didYouKnowTimer =+ Timer.periodic(const Duration(seconds: 5), (Timer timer) {if (!mounted) {return;}@@ -85,6 +87,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {_firstImportEvent.cancel();_importProgressEvent.cancel();_debouncer.cancelDebounceTimer();+ _didYouKnowTimer.cancel();super.dispose();}