Fix identical file added to album

This commit is contained in:
Ming Ming 2021-11-29 17:03:38 +08:00
parent 3ad3fe5564
commit 0cd9dd5884

View file

@ -120,7 +120,7 @@ bool _isItemFileEqual(AlbumItem a, AlbumItem b) {
int _getItemHashCode(AlbumItem a) {
if (a is AlbumFileItem) {
return a.file.path.hashCode;
return a.file.fileId?.hashCode ?? a.file.path.hashCode;
} else {
return a.hashCode;
}