parent
0bdd3f79d4
commit
9ecec5d468
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ import java.io.ByteArrayInputStream
|
|||
import java.io.ByteArrayOutputStream
|
||||
import java.io.File
|
||||
import java.io.InputStream
|
||||
import java.util.Date
|
||||
|
||||
class ImageSaver(
|
||||
val context: Context,
|
||||
|
@ -77,6 +78,7 @@ class ImageSaver(
|
|||
MediaStore.Images.Media.RELATIVE_PATH to relativePath,
|
||||
MediaStore.Images.Media.DISPLAY_NAME to image.name,
|
||||
MediaStore.Images.Media.MIME_TYPE to type.mime,
|
||||
MediaStore.Images.Media.DATE_MODIFIED to Date().time * 1000,
|
||||
)
|
||||
|
||||
val picture = findUriOrDefault(relativePath, filename) {
|
||||
|
|
Reference in a new issue