Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] More central flag

laurenspriem53d71de31ff3
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 569bbe3372..97e960bb75 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -103,6 +103,8 @@ class SmartMemoriesService {
_logger.info("Smart memories service initialized");
}
+ bool get enableSmartMemories => flagService.showSmartMemories;
+
void clearCache() {
_cachedMemories = null;
_future = null;
diff --git a/mobile/lib/ui/home/memories/memories_widget.dart b/mobile/lib/ui/home/memories/memories_widget.dart
index 2e2117f25d..655f4896c5 100644
--- a/mobile/lib/ui/home/memories/memories_widget.dart
+++ b/mobile/lib/ui/home/memories/memories_widget.dart
@@ -58,7 +58,7 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {
if (!MemoriesService.instance.showMemories) {
return const SizedBox.shrink();
}
- if (flagService.showSmartMemories) {
+ if (SmartMemoriesService.instance.enableSmartMemories) {
return FutureBuilder<List<SmartMemory>>(
future: SmartMemoriesService.instance.getMemories(
null,