π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use default Grid count after Justified migration
ashil-pilot372bee4a7a09
diff --git a/mobile/apps/photos/lib/settings/local_settings.dart b/mobile/apps/photos/lib/settings/local_settings.dartindex bd3403a723..ae58c6f35d 100644--- a/mobile/apps/photos/lib/settings/local_settings.dart+++ b/mobile/apps/photos/lib/settings/local_settings.dart@@ -315,7 +315,7 @@ class LocalSettings {kGalleryLayoutType,GalleryLayoutType.justified.name,);- await _prefs.setInt(kPhotoGridSize, photoGridSizeDefault);+ await _prefs.remove(kPhotoGridSize);} else if (!_prefs.containsKey(kPhotoGridSize) &&(isAppModeSet ||_prefs.containsKey(Configuration.userIDKey) ||diff --git a/mobile/apps/photos/test/settings/local_settings_gallery_layout_test.dart b/mobile/apps/photos/test/settings/local_settings_gallery_layout_test.dartindex 59f49e3959..a584e8cbba 100644--- a/mobile/apps/photos/test/settings/local_settings_gallery_layout_test.dart+++ b/mobile/apps/photos/test/settings/local_settings_gallery_layout_test.dart@@ -35,6 +35,10 @@ void main() {count == 2 ? GalleryLayoutType.justified : GalleryLayoutType.grid,);expect(settings.getPhotoGridSize(), count == 2 ? 3 : count);+ expect(+ preferences.containsKey(LocalSettings.kPhotoGridSize),+ count != 2,+ );expect(settings.getGalleryGroupType(), GroupType.month);expect(preferences.getString("album_sort_order"), "oldest_first");expect(@@ -44,6 +48,7 @@ void main() {await settings.setGalleryLayoutType(GalleryLayoutType.grid);await settings.migrateGalleryLayoutPreferences();expect(settings.getGalleryLayoutType(), GalleryLayoutType.grid);+ expect(settings.getPhotoGridSize(), count == 2 ? 3 : count);}},);