mirror of
				https://github.com/SimpleMobileTools/Simple-Draw.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	handle storage permission if saving a third party intent image
This commit is contained in:
		@@ -259,8 +259,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
 | 
			
		||||
            val outputStream = contentResolver.openOutputStream(intentUri)
 | 
			
		||||
            saveToOutputStream(outputStream, file.getCompressionFormat())
 | 
			
		||||
        } else {
 | 
			
		||||
            getFileOutputStream(file) {
 | 
			
		||||
                saveToOutputStream(it, file.getCompressionFormat())
 | 
			
		||||
            handlePermission(PERMISSION_WRITE_STORAGE) {
 | 
			
		||||
                getFileOutputStream(file) {
 | 
			
		||||
                    saveToOutputStream(it, file.getCompressionFormat())
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user