feat(mobile): render assets on device by default (#10470)

* feat(mobile): render asset on device by default

* remove unused service
This commit is contained in:
Alex
2024-06-22 09:13:05 -07:00
committed by GitHub
parent 6164640575
commit 32da9d90e4
3 changed files with 14 additions and 97 deletions

View File

@@ -24,13 +24,9 @@ class HashService {
AssetPathEntity album, {
int start = 0,
int end = 0x7fffffffffffffff,
Set<String>? excludedAssets,
}) async {
final entities = await album.getAssetListRange(start: start, end: end);
final filtered = excludedAssets == null
? entities
: entities.where((e) => !excludedAssets.contains(e.id)).toList();
return _hashAssets(filtered);
return _hashAssets(entities);
}
/// Converts a list of [AssetEntity]s to [Asset]s including only those