From 8466f9b9122e51903a76e353f1d33a15e7d11bb3 Mon Sep 17 00:00:00 2001 From: ranjith Date: Thu, 11 Nov 2021 22:47:55 +0530 Subject: [PATCH] Minor fix --- .../com/esafirm/imagepicker/features/ImagePickerFragment.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imagepicker/src/main/java/com/esafirm/imagepicker/features/ImagePickerFragment.kt b/imagepicker/src/main/java/com/esafirm/imagepicker/features/ImagePickerFragment.kt index 1e8b1537..7f8f4256 100644 --- a/imagepicker/src/main/java/com/esafirm/imagepicker/features/ImagePickerFragment.kt +++ b/imagepicker/src/main/java/com/esafirm/imagepicker/features/ImagePickerFragment.kt @@ -40,8 +40,7 @@ class ImagePickerFragment : Fragment() { private var binding: EfFragmentImagePickerBinding? = null private lateinit var recyclerViewManager: RecyclerViewManager - private val IS_EXTERNAL_STORAGE_LEGACY = - Build.VERSION.SDK_INT < Build.VERSION_CODES.Q || Environment.isExternalStorageLegacy() + private val IS_EXTERNAL_STORAGE_LEGACY = Build.VERSION.SDK_INT < Build.VERSION_CODES.Q private val REQUIRED_EXTERNAL_STORAGE_PERMISSION = if (IS_EXTERNAL_STORAGE_LEGACY) Manifest.permission.WRITE_EXTERNAL_STORAGE else Manifest.permission.READ_EXTERNAL_STORAGE