Fix filtered items added to date time group

This commit is contained in:
Ming Ming 2022-07-31 16:27:06 +08:00
parent 45902a1ee8
commit 2bce369e66

View file

@ -128,11 +128,10 @@ class _PhotoListItemBuilder {
final listItems = <SelectableItem>[]; final listItems = <SelectableItem>[];
for (int i = 0; i < files.length; ++i) { for (int i = 0; i < files.length; ++i) {
final f = files[i]; final f = files[i];
grouper?.onFile(f)?.run((item) => listItems.add(item));
memoryAlbumHelper?.addFile(f);
final item = _buildListItem(i, account, f); final item = _buildListItem(i, account, f);
if (item != null) { if (item != null) {
grouper?.onFile(f)?.run((item) => listItems.add(item));
memoryAlbumHelper?.addFile(f);
listItems.add(item); listItems.add(item);
} }
} }