mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-18 13:00:36 +01:00
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) {
|
SaveAsDialog(this, currPath, false) {
|
||||||
handleSAFDialog(it) {
|
handleSAFDialog(it) {
|
||||||
Thread {
|
Thread {
|
||||||
saveImageToFile(currPath, it, mRotationDegrees) {
|
saveRotatedImageToFile(currPath, it, mRotationDegrees) {
|
||||||
mRotationDegrees = 0
|
mRotationDegrees = 0
|
||||||
invalidateOptionsMenu()
|
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)
|
toast(R.string.saving)
|
||||||
if (oldPath == newPath && oldPath.isJpg()) {
|
if (oldPath == newPath && oldPath.isJpg()) {
|
||||||
if (tryRotateByExif(oldPath, degrees, callback)) {
|
if (tryRotateByExif(oldPath, degrees, callback)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user