mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-02-18 11:54:21 +01:00
Adding handleSAFDialog for EXIF rotation
This commit is contained in:
parent
fef04593ac
commit
9a90787dbd
1 changed files with 31 additions and 29 deletions
|
@ -458,6 +458,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
Thread({
|
||||
toast(R.string.saving)
|
||||
val selectedFile = File(it)
|
||||
handleSAFDialog(selectedFile) {
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue