mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
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.ByteArrayOutputStream
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
|
import java.util.Date
|
||||||
|
|
||||||
class ImageSaver(
|
class ImageSaver(
|
||||||
val context: Context,
|
val context: Context,
|
||||||
|
@ -77,6 +78,7 @@ class ImageSaver(
|
||||||
MediaStore.Images.Media.RELATIVE_PATH to relativePath,
|
MediaStore.Images.Media.RELATIVE_PATH to relativePath,
|
||||||
MediaStore.Images.Media.DISPLAY_NAME to image.name,
|
MediaStore.Images.Media.DISPLAY_NAME to image.name,
|
||||||
MediaStore.Images.Media.MIME_TYPE to type.mime,
|
MediaStore.Images.Media.MIME_TYPE to type.mime,
|
||||||
|
MediaStore.Images.Media.DATE_MODIFIED to Date().time * 1000,
|
||||||
)
|
)
|
||||||
|
|
||||||
val picture = findUriOrDefault(relativePath, filename) {
|
val picture = findUriOrDefault(relativePath, filename) {
|
||||||
|
|
Loading…
Reference in a new issue