renaming a function

This commit is contained in:
tibbi 2019-01-13 21:01:28 +01:00
parent c81fbdbf9d
commit b128298e73
2 changed files with 2 additions and 2 deletions

View File

@ -588,7 +588,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
SaveAsDialog(this, currPath, false) {
handleSAFDialog(it) {
Thread {
saveImageToFile(currPath, it, mRotationDegrees) {
saveRotatedImageToFile(currPath, it, mRotationDegrees) {
mRotationDegrees = 0
invalidateOptionsMenu()
}

View File

@ -372,7 +372,7 @@ fun Activity.fixDateTaken(paths: ArrayList<String>, callback: (() -> Unit)? = nu
}
}
fun BaseSimpleActivity.saveImageToFile(oldPath: String, newPath: String, degrees: Int, callback: () -> Unit) {
fun BaseSimpleActivity.saveRotatedImageToFile(oldPath: String, newPath: String, degrees: Int, callback: () -> Unit) {
toast(R.string.saving)
if (oldPath == newPath && oldPath.isJpg()) {
if (tryRotateByExif(oldPath, degrees, callback)) {