Refactoring

This commit is contained in:
Ming Ming 2021-10-04 21:53:16 +08:00
parent a9b424f25d
commit dfe1acc6e4

View file

@ -525,12 +525,7 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
}
void _transformItems(List<AlbumItem> items) {
if (_editAlbum != null) {
// edit mode
_sortedItems = _editAlbum!.sortProvider.sort(items);
} else {
_sortedItems = _album!.sortProvider.sort(items);
}
_sortedItems = (_editAlbum ?? _album)!.sortProvider.sort(items);
_onSortedItemsUpdated();
}