Merge pull request #443 from ltGuillaume/patch-1

Adding handleSAFDialog for EXIF rotation
This commit is contained in:
Tibor Kaputa 2017-11-07 23:55:42 +01:00 committed by GitHub
commit 6bc3e4cfa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,8 +456,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
val currPath = getCurrentPath()
SaveAsDialog(this, currPath, false) {
Thread({
toast(R.string.saving)
val selectedFile = File(it)
handleSAFDialog(selectedFile) {
toast(R.string.saving)
val tmpFile = File(filesDir, ".tmp_${it.getFilenameFromPath()}")
try {
val bitmap = BitmapFactory.decodeFile(currPath)
@ -492,6 +493,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
} finally {
deleteFile(tmpFile) {}
}
}
}).start()
}
}