From 2bce369e66149ae9ef9ca35d6b48c1e491416c11 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 31 Jul 2022 16:27:06 +0800 Subject: [PATCH] Fix filtered items added to date time group --- app/lib/widget/builder/photo_list_item_builder.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/lib/widget/builder/photo_list_item_builder.dart b/app/lib/widget/builder/photo_list_item_builder.dart index 7b87c359..b50ca7c9 100644 --- a/app/lib/widget/builder/photo_list_item_builder.dart +++ b/app/lib/widget/builder/photo_list_item_builder.dart @@ -128,11 +128,10 @@ class _PhotoListItemBuilder { final listItems = []; for (int i = 0; i < files.length; ++i) { final f = files[i]; - grouper?.onFile(f)?.run((item) => listItems.add(item)); - memoryAlbumHelper?.addFile(f); - final item = _buildListItem(i, account, f); if (item != null) { + grouper?.onFile(f)?.run((item) => listItems.add(item)); + memoryAlbumHelper?.addFile(f); listItems.add(item); } }