mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fix saving rotated images on the internal storage
This commit is contained in:
@ -541,7 +541,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
var inputStream: InputStream? = null
|
||||
var out: OutputStream? = null
|
||||
try {
|
||||
out = getFileOutputStreamSync(destination.absolutePath, source.getMimeType(), getFileDocument(destination.parent))
|
||||
val fileDocument = if (isPathOnSD(destination.absolutePath)) getFileDocument(destination.parent) else null
|
||||
out = getFileOutputStreamSync(destination.absolutePath, source.getMimeType(), fileDocument)
|
||||
inputStream = FileInputStream(source)
|
||||
inputStream.copyTo(out!!)
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user