mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	@@ -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 New Issue
	
	Block a user