Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

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.dart
index 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-select
if (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(