mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-27 16:55:03 +01:00
make sure we save the rotated image on the background thread
This commit is contained in:
parent
5808ec3b62
commit
0048f9096b
@ -495,13 +495,12 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||
private fun saveImageAs() {
|
||||
val currPath = getCurrentPath()
|
||||
SaveAsDialog(this, currPath, false) {
|
||||
Thread({
|
||||
val selectedFile = File(it)
|
||||
handleSAFDialog(selectedFile) {
|
||||
val selectedFile = File(it)
|
||||
handleSAFDialog(selectedFile) {
|
||||
Thread({
|
||||
saveImageToFile(currPath, it)
|
||||
|
||||
}
|
||||
}).start()
|
||||
}).start()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user