make sure we save the rotated image on the background thread
This commit is contained in:
parent
5808ec3b62
commit
0048f9096b
|
@ -495,15 +495,14 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
private fun saveImageAs() {
|
private fun saveImageAs() {
|
||||||
val currPath = getCurrentPath()
|
val currPath = getCurrentPath()
|
||||||
SaveAsDialog(this, currPath, false) {
|
SaveAsDialog(this, currPath, false) {
|
||||||
Thread({
|
|
||||||
val selectedFile = File(it)
|
val selectedFile = File(it)
|
||||||
handleSAFDialog(selectedFile) {
|
handleSAFDialog(selectedFile) {
|
||||||
|
Thread({
|
||||||
saveImageToFile(currPath, it)
|
saveImageToFile(currPath, it)
|
||||||
|
|
||||||
}
|
|
||||||
}).start()
|
}).start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun saveImageToFile(oldPath: String, newPath: String) {
|
private fun saveImageToFile(oldPath: String, newPath: String) {
|
||||||
val newFile = File(newPath)
|
val newFile = File(newPath)
|
||||||
|
|
Loading…
Reference in New Issue