renaming a function
This commit is contained in:
parent
c81fbdbf9d
commit
b128298e73
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue