Clear selection immediately after pressing add

This commit is contained in:
Ming Ming 2021-11-18 12:58:52 +08:00
parent 2aaf6d0a88
commit 31baba7a8a

View file

@ -45,11 +45,11 @@ class AddSelectionToAlbumHandler {
file: f,
))
.toList();
clearSelection();
final albumRepo = AlbumRepo(AlbumCachedDataSource(AppDb()));
final shareRepo = ShareRepo(ShareRemoteDataSource());
await AddToAlbum(albumRepo, shareRepo, AppDb(), Pref())(
account, value, selected);
clearSelection();
},
null,
L10n.global().addSelectedToAlbumSuccessNotification(value.name),