Up mobile version and update deprecated api

This commit is contained in:
Alex 2022-09-18 16:11:24 -05:00
parent 62121470a8
commit 2e06be5155
No known key found for this signature in database
GPG key ID: 53CD082B3A5E1082
5 changed files with 7 additions and 4 deletions

View file

@ -127,7 +127,9 @@ class BackupService {
for (int i = 0; i < albums.length; i++) {
final AssetPathEntity? a = albums[i];
if (a != null && a.lastModified?.isBefore(lastBackup[i]) != true) {
result.addAll(await a.getAssetListRange(start: 0, end: a.assetCount));
result.addAll(
await a.getAssetListRange(start: 0, end: await a.assetCountAsync),
);
lastBackup[i] = now;
}
}