mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Fix able to add files to non static album
This commit is contained in:
parent
c6850b7a2d
commit
3e488ac0aa
1 changed files with 6 additions and 1 deletions
|
@ -6,6 +6,7 @@ import 'package:nc_photos/account.dart';
|
|||
import 'package:nc_photos/app_localizations.dart';
|
||||
import 'package:nc_photos/bloc/list_album.dart';
|
||||
import 'package:nc_photos/entity/album.dart';
|
||||
import 'package:nc_photos/entity/album/provider.dart';
|
||||
import 'package:nc_photos/entity/album_util.dart' as album_util;
|
||||
import 'package:nc_photos/exception_util.dart' as exception_util;
|
||||
import 'package:nc_photos/k.dart' as k;
|
||||
|
@ -215,7 +216,11 @@ class _AlbumPickerState extends State<AlbumPicker>
|
|||
|
||||
void _transformItems(List<ListAlbumBlocItem> items) {
|
||||
_sortedAlbums = album_util.sorted(
|
||||
items.map((e) => e.album).toList(), _getSortFromPref());
|
||||
items
|
||||
.map((e) => e.album)
|
||||
.where((a) => a.provider is AlbumStaticProvider)
|
||||
.toList(),
|
||||
_getSortFromPref());
|
||||
}
|
||||
|
||||
void _reqQuery() {
|
||||
|
|
Loading…
Reference in a new issue