π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor
Neeraj Guptac3c8881e0cae
diff --git a/mobile/lib/ui/viewer/file/file_bottom_bar.dart b/mobile/lib/ui/viewer/file/file_bottom_bar.dartindex a3907867a9..d21bbc1a18 100644--- a/mobile/lib/ui/viewer/file/file_bottom_bar.dart+++ b/mobile/lib/ui/viewer/file/file_bottom_bar.dart@@ -43,14 +43,13 @@ class FileBottomBar extends StatefulWidget {class FileBottomBarState extends State<FileBottomBar> {final GlobalKey shareButtonKey = GlobalKey();bool isPanorama = false;- int? lastFile;+ bool _isPanoramaCheckInitiated = false;Future<void> _checkPanoroma() async {- if (widget.file.fileType != FileType.image ||- lastFile == widget.file.generatedID) {+ if (widget.file.fileType != FileType.image || _isPanoramaCheckInitiated) {return;}- lastFile = widget.file.generatedID;+ _isPanoramaCheckInitiated = true;final result = await checkIfPanorama(widget.file);if (mounted && isPanorama == !result) {isPanorama = result;