π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Avoid search preview reload on width changes
ashilkn497b61004083
diff --git a/mobile/apps/photos/lib/states/all_sections_examples_state.dart b/mobile/apps/photos/lib/states/all_sections_examples_state.dartindex af1654da5b..5876c64310 100644--- a/mobile/apps/photos/lib/states/all_sections_examples_state.dart+++ b/mobile/apps/photos/lib/states/all_sections_examples_state.dart@@ -121,15 +121,6 @@ class _AllSectionsExamplesProviderState}}- @override- void didUpdateWidget(covariant AllSectionsExamplesProvider oldWidget) {- super.didUpdateWidget(oldWidget);- if (oldWidget.previewLimits != widget.previewLimits &&- _firstLoadInProgressOrComplete) {- reloadAllSections();- }- }-void reloadAllSections() {_firstLoadInProgressOrComplete = true;_logger.info('queue reload all sections');diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab_preview_limits.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab_preview_limits.dartindex 2e2ca6cadc..7b07fb3a3e 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab_preview_limits.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab_preview_limits.dart@@ -69,25 +69,4 @@ class SearchTabPreviewLimits {final visibleItems = ((rowWidth + spacing) / (itemWidth + spacing)).floor();return math.max(1, visibleItems) + _extraItems;}-- @override- bool operator ==(Object other) {- return other is SearchTabPreviewLimits &&- other.faceResults == faceResults &&- other.magicResults == magicResults &&- other.locationResults == locationResults &&- other.contactResults == contactResults &&- other.ritualResults == ritualResults;- }-- @override- int get hashCode {- return Object.hash(- faceResults,- magicResults,- locationResults,- contactResults,- ritualResults,- );- }}