diff --git a/presentation/src/main/java/com/cheocharm/presentation/ui/write/PictureFragment.kt b/presentation/src/main/java/com/cheocharm/presentation/ui/write/PictureFragment.kt index 469bffc3..0ae8399f 100644 --- a/presentation/src/main/java/com/cheocharm/presentation/ui/write/PictureFragment.kt +++ b/presentation/src/main/java/com/cheocharm/presentation/ui/write/PictureFragment.kt @@ -1,6 +1,7 @@ package com.cheocharm.presentation.ui.write import android.Manifest +import android.os.Build import android.os.Bundle import android.view.View import androidx.activity.result.contract.ActivityResultContracts @@ -69,11 +70,16 @@ class PictureFragment : BaseFragment(R.layout.fragment_p } private fun launchPermissionRequest() { - requestPermissionsLauncher.launch( + val permissions = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { arrayOf( Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.ACCESS_MEDIA_LOCATION ) - ) + } else { + arrayOf( + Manifest.permission.READ_EXTERNAL_STORAGE + ) + } + requestPermissionsLauncher.launch(permissions) } }