π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix title bug
laurenspriemdcf6d3a9e116
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dartindex 3651ea98eb..b6921104d6 100644--- a/mobile/lib/services/smart_memories_service.dart+++ b/mobile/lib/services/smart_memories_service.dart@@ -1173,7 +1173,7 @@ class SmartMemoriesService {);final fillerMemory = FillerMemory(memories,- "TEST",+ "filler",nowInMicroseconds,windowEnd,);diff --git a/mobile/lib/ui/home/memories/memories_widget.dart b/mobile/lib/ui/home/memories/memories_widget.dartindex de4f9fbbc8..002a899245 100644--- a/mobile/lib/ui/home/memories/memories_widget.dart+++ b/mobile/lib/ui/home/memories/memories_widget.dart@@ -4,7 +4,6 @@ import 'package:flutter/material.dart';import "package:flutter_animate/flutter_animate.dart";import "package:photos/core/event_bus.dart";import "package:photos/events/memories_setting_changed.dart";-import "package:photos/models/filler_memory.dart";import 'package:photos/models/memory.dart';import "package:photos/models/smart_memory.dart";import "package:photos/service_locator.dart";@@ -129,14 +128,8 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {}Widget _buildSmartMemories(List<SmartMemory> memories) {- final List<(List<Memory>, String?)> collatedMemories = [];- for (final memory in memories) {- if (memory is FillerMemory) {- collatedMemories.add((memory.memories, null));- } else {- collatedMemories.add((memory.memories, memory.title));- }- }+ final collatedMemories =+ memories.map((e) => (e.memories, e.title)).toList();return SizedBox(height: _maxHeight + MemoryCoverWidget.outerStrokeWidth * 2,diff --git a/mobile/lib/ui/home/memories/memory_cover_widget.dart b/mobile/lib/ui/home/memories/memory_cover_widget.dartindex 270bdb0f4a..e4696ecc67 100644--- a/mobile/lib/ui/home/memories/memory_cover_widget.dart+++ b/mobile/lib/ui/home/memories/memory_cover_widget.dart@@ -48,7 +48,11 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {final widthOfScreen = MediaQuery.sizeOf(context).width;final index = _getNextMemoryIndex();// TODO: lau: remove (I) from name when opening up the feature flag- final title = widget.title != null ? widget.title! + "(I)" : _getTitle(widget.memories[index]);+ final title = widget.title != null+ ? widget.title! == "filler"+ ? _getTitle(widget.memories[index]) + "(I)"+ : widget.title! + "(I)"+ : _getTitle(widget.memories[index]);final memory = widget.memories[index];final isSeen = memory.isSeen();final brightness =