We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Background process limit - No background processes
1 parent e71e297 commit f419406Copy full SHA for f419406
1 file changed
imagepicker/src/main/java/com/shz/imagepicker/imagepicker/activity/camera/CameraPickerActivity.kt
@@ -41,7 +41,7 @@ internal class CameraPickerActivity : ImagePickerActivity() {
41
val cameraIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
42
filename = System.nanoTime().toString()
43
val uri = getCaptureImageOutputUri(this, filename)
44
- if (filename.isNotEmpty()) uri?.path?.let { path ->
+ if (filename.isNotEmpty() && authority.isNotEmpty()) uri?.path?.let { path ->
45
val file = File(path)
46
if (Build.VERSION.SDK_INT >= 24) {
47
cameraIntent.putExtra(
0 commit comments