Merge pull request #407 from Syar-tech/fix-Syar-tech-mimetype
Fix MimeType for API 30
This commit is contained in:
commit
e6c8879824
|
@ -285,7 +285,7 @@ class CKCamera(context: ThemedReactContext) : FrameLayout(context), LifecycleObs
|
|||
// Create output options object which contains file + metadata
|
||||
val contentValues = ContentValues().apply {
|
||||
put(MediaStore.MediaColumns.DISPLAY_NAME, "IMG_" + System.currentTimeMillis())
|
||||
put(MediaStore.MediaColumns.MIME_TYPE, "image/jpg")
|
||||
put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg")
|
||||
}
|
||||
|
||||
// Create the output file option to store the captured image in MediaStore
|
||||
|
@ -542,4 +542,4 @@ class CKCamera(context: ThemedReactContext) : FrameLayout(context), LifecycleObs
|
|||
private const val RATIO_4_3_VALUE = 4.0 / 3.0
|
||||
private const val RATIO_16_9_VALUE = 16.0 / 9.0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue