mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
Adding handleSAFDialog for EXIF rotation
This commit is contained in:
@ -458,6 +458,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||||||
Thread({
|
Thread({
|
||||||
toast(R.string.saving)
|
toast(R.string.saving)
|
||||||
val selectedFile = File(it)
|
val selectedFile = File(it)
|
||||||
|
handleSAFDialog(selectedFile) {
|
||||||
val tmpFile = File(filesDir, ".tmp_${it.getFilenameFromPath()}")
|
val tmpFile = File(filesDir, ".tmp_${it.getFilenameFromPath()}")
|
||||||
try {
|
try {
|
||||||
val bitmap = BitmapFactory.decodeFile(currPath)
|
val bitmap = BitmapFactory.decodeFile(currPath)
|
||||||
@ -492,6 +493,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||||||
} finally {
|
} finally {
|
||||||
deleteFile(tmpFile) {}
|
deleteFile(tmpFile) {}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}).start()
|
}).start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user