Skip to content

Commit 6a7d87b

Browse files
committed
Issue in android 11 solved when call gallery
1 parent 685f697 commit 6a7d87b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

EasyMediaPicker/src/main/java/com/bn/easypicker/EasyPicker.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ class EasyPicker(
188188
private var multiImageLauncher =
189189
act.registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
190190
if (result.resultCode == Activity.RESULT_OK) {
191+
Log.v("Filessss:Data","${result.data}")
191192
if (result.data?.clipData != null) {
192193
Log.v("Filessss", "ResultOk")
193194
val count: Int = result.data?.clipData?.itemCount ?: 0
@@ -447,7 +448,7 @@ class EasyPicker(
447448
act.lifecycleScope.launchWhenStarted {
448449
multiImageLauncher
449450
}
450-
if (Build.VERSION.SDK_INT >= 30) {
451+
if (Build.VERSION.SDK_INT > 30) {
451452
val intent = Intent(
452453
Intent.ACTION_PICK,
453454
MediaStore.Images.Media.INTERNAL_CONTENT_URI

EasyMediaPicker/src/main/java/com/bn/easypicker/FragmentEasyPicker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class FragmentEasyPicker(
416416

417417
fun chooseMultipleImages() {
418418
if (checkPermission()) {
419-
if (Build.VERSION.SDK_INT >= 30) {
419+
if (Build.VERSION.SDK_INT > 30) {
420420
val intent = Intent(
421421
Intent.ACTION_PICK,
422422
MediaStore.Images.Media.INTERNAL_CONTENT_URI

0 commit comments

Comments
 (0)