diff --git a/mobile/lib/core/constants.dart b/mobile/lib/core/constants.dart index 02923b6c4..3918541b5 100644 --- a/mobile/lib/core/constants.dart +++ b/mobile/lib/core/constants.dart @@ -69,6 +69,8 @@ const galleryGridSpacing = 2.0; const kSearchSectionLimit = 9; +const maxPickAssetLimit = 50; + const iOSGroupID = "group.io.ente.frame.SlideshowWidget"; const blackThumbnailBase64 = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEB' diff --git a/mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart b/mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart index aeeadc198..573893b17 100644 --- a/mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart +++ b/mobile/lib/ui/viewer/gallery/hooks/add_photos_sheet.dart @@ -5,6 +5,7 @@ import "package:flutter/material.dart"; import "package:flutter_animate/flutter_animate.dart"; import "package:modal_bottom_sheet/modal_bottom_sheet.dart"; import "package:photos/core/configuration.dart"; +import "package:photos/core/constants.dart"; import "package:photos/db/files_db.dart"; import "package:photos/generated/l10n.dart"; import "package:photos/l10n/l10n.dart"; @@ -171,6 +172,7 @@ class AddPhotosPhotoWidget extends StatelessWidget { final List? result = await AssetPicker.pickAssets( context, pickerConfig: AssetPickerConfig( + maxAssets: maxPickAssetLimit, textDelegate: assetPickerTextDelegate, ), );