@@ -91,12 +91,14 @@ class FragmentEasyPicker(
9191 this .sheetBackgroundColor = backgroundColor
9292 return this
9393 }
94+
9495 fun setMaxSelectionLimit (
9596 limit : Int
9697 ): Builder {
9798 this .maximumSelectionLimit = limit
9899 return this
99100 }
101+
100102 fun setIconsAndTextColor (
101103 cameraIcon : Int? = null,
102104 galleryIcon : Int? = null,
@@ -188,7 +190,7 @@ class FragmentEasyPicker(
188190 )
189191 )
190192 }
191- if (images.isNotEmpty()) mListener.onCaptureMedia(request, files = images)
193+ if (images.isNotEmpty()) mListener.onCaptureMedia(request, files = images)
192194 } else {
193195 Toast .makeText(mContext, " Can't pick your images" , Toast .LENGTH_SHORT )
194196 }
@@ -207,6 +209,7 @@ class FragmentEasyPicker(
207209 }
208210 return arrayListOf ()
209211 }
212+
210213 private var multiImageLauncherFromCustomGallery =
211214 fragment.registerForActivityResult(ActivityResultContracts .StartActivityForResult ()) { result ->
212215 if (result.resultCode == Activity .RESULT_OK ) {
@@ -236,7 +239,6 @@ class FragmentEasyPicker(
236239 }
237240
238241
239-
240242 private var takeImageLauncher =
241243 fragment.registerForActivityResult(ActivityResultContracts .TakePicture ()) { result ->
242244 CoroutineScope (Dispatchers .Main ).launch {
@@ -271,8 +273,6 @@ class FragmentEasyPicker(
271273 }
272274
273275
274-
275-
276276 private var videoLauncher =
277277 fragment.registerForActivityResult(ActivityResultContracts .StartActivityForResult ()) { result ->
278278 if (result.resultCode == Activity .RESULT_OK ) {
@@ -382,9 +382,9 @@ class FragmentEasyPicker(
382382 resulting.add(
383383 FileResource (
384384 uri = imageUri,
385- path = FilesVersionUtil .getRealPathFromUri (
386- mContext ,
387- imageUri
385+ path = FilesVersionUtil .getRealPathFromURIForAndroid10Issue (
386+ imageUri ,
387+ mContext
388388 )
389389 )
390390 )
@@ -525,6 +525,7 @@ class FragmentEasyPicker(
525525 0 -> {
526526 captureHighQualityImage()
527527 }
528+
528529 1 -> {
529530 val intent = Intent (
530531 Intent .ACTION_PICK ,
0 commit comments