π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename filesInLastRow to incompleteRowCount for clarity
ashilkn8c97d0b44543
diff --git a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dartindex c30a6357f5..2eac187ef1 100644--- a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart@@ -369,9 +369,9 @@ class GalleryGroups {// Dummy files are used for gesture tracking in swipe-to-selectif (flagService.internalUser && !limitSelectionToOne) {// Add dummy files to fill the last row if needed- final filesInLastRow = groupFiles.length % crossAxisCount;- if (filesInLastRow != 0) {- final dummiesNeeded = crossAxisCount - filesInLastRow;+ final incompleteRowCount = groupFiles.length % crossAxisCount;+ if (incompleteRowCount != 0) {+ final dummiesNeeded = crossAxisCount - incompleteRowCount;final filesWithDummies = List<EnteFile>.from(groupFiles);for (int i = 0; i < dummiesNeeded; i++) {filesWithDummies.add(