Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename file

ashilkna3333e48f602
diff --git a/mobile/apps/photos/lib/models/gallery/gallery_sections.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
similarity index 96%
rename from mobile/apps/photos/lib/models/gallery/gallery_sections.dart
rename to mobile/apps/photos/lib/models/gallery/gallery_groups.dart
index 7d4dcf0d1b..40c0ca1380 100644
--- a/mobile/apps/photos/lib/models/gallery/gallery_sections.dart
+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
@@ -108,16 +108,6 @@ class GalleryGroups {
}
return scrollOffset;
-
- // scrollController.animateTo(
- // scrollOffset,
- // duration: const Duration(milliseconds: 300),
- // curve: Curves.easeOutExpo,
- // );
-
- // scrollController.jumpTo(
- // scrollOffset,
- // );
}
/// Uses binary search to find the group ID that contains the given creation time.
@@ -299,15 +289,11 @@ class GalleryGroups {
_logger.info(
"Built group layouts in ${stopwatch.elapsedMilliseconds} ms",
);
- print(
- "Built group layouts in ${stopwatch.elapsedMilliseconds} ms",
- );
stopwatch.stop();
return groupLayouts;
}
-// TODO: compute this in isolate
void _buildGroups() {
final stopwatch = Stopwatch()..start();
@@ -342,9 +328,6 @@ class GalleryGroups {
_logger.info(
"Built ${_groupIds.length} groups for group type ${groupType.name} in ${stopwatch.elapsedMilliseconds} ms",
);
- print(
- "Built ${_groupIds.length} groups for group type ${groupType.name} in ${stopwatch.elapsedMilliseconds} ms",
- );
stopwatch.stop();
}
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 43d1e018f3..ae0c8a5be1 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -13,7 +13,7 @@ import 'package:photos/events/files_updated_event.dart';
import 'package:photos/events/tab_changed_event.dart';
import 'package:photos/models/file/file.dart';
import 'package:photos/models/file_load_result.dart';
-import "package:photos/models/gallery/gallery_sections.dart";
+import "package:photos/models/gallery/gallery_groups.dart";
import "package:photos/models/gallery_type.dart";
import 'package:photos/models/selected_files.dart';
import "package:photos/service_locator.dart";
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
index 78e65b0ec6..baa0c50b14 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
@@ -1,7 +1,7 @@
import "dart:async";
import "package:flutter/material.dart";
import "package:logging/logging.dart";
-import "package:photos/models/gallery/gallery_sections.dart";
+import "package:photos/models/gallery/gallery_groups.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/viewer/gallery/component/group/type.dart";
import "package:photos/ui/viewer/gallery/scrollbar/scroll_bar_with_use_notifier.dart";