diff --git a/mobile/lib/modules/album/views/create_album_page.dart b/mobile/lib/modules/album/views/create_album_page.dart index c799eb3f17..4a4e7a9e5b 100644 --- a/mobile/lib/modules/album/views/create_album_page.dart +++ b/mobile/lib/modules/album/views/create_album_page.dart @@ -30,7 +30,7 @@ class CreateAlbumPage extends HookConsumerWidget { final albumTitleTextFieldFocusNode = useFocusNode(); final isAlbumTitleTextFieldFocus = useState(false); final isAlbumTitleEmpty = useState(true); - final selectedAssets = useState>(const {}); + final selectedAssets = useState>(initialAssets != null ? Set.from(initialAssets!) : const {}); final isDarkTheme = Theme.of(context).brightness == Brightness.dark; showSelectUserPage() async { diff --git a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart index 4fc60db71f..aca9729683 100644 --- a/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart +++ b/mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart @@ -381,6 +381,9 @@ class ImmichAssetGridViewState extends State { if (widget.visibleItemsListener != null) { _itemPositionsListener.itemPositions.addListener(_positionListener); } + if (widget.preselectedAssets != null) { + _selectedAssets.addAll(widget.preselectedAssets!); + } } @override