Skip to content

Commit

Permalink
- Change in multiple image picking limit
Browse files Browse the repository at this point in the history
Reason:- There should not be any fix image selection limit.
  • Loading branch information
SohamSimform authored and yashwantgowla-simform committed Apr 22, 2024
1 parent 9c58953 commit 0cd67af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ImagePicker private constructor(
fun multipleSelection(enable: Boolean, maxCount: Int): ImagePicker {
val pickerConfig = pickerConfigManager.getPickerConfig()
if (enable) {
require(maxCount in 1..MAX_PICK_LIMIT) { "The maximum allowed image count should be in range of 1..$MAX_PICK_LIMIT. The end limit is inclusive." }
require(maxCount > 1) { "The maximum allowed image count should be more than 1." }
pickerConfig.maxPickCount = maxCount
}
pickerConfig.allowMultipleSelection = enable
Expand Down

0 comments on commit 0cd67af

Please sign in to comment.