From a8f1b888598f6431a157ec0510185a910a62a85a Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 6 Nov 2017 21:09:56 +0100 Subject: [PATCH] update commons to 2.36.1 --- app/build.gradle | 2 +- .../gallery/activities/ViewPagerActivity.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2bf1b658e..4d2007469 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,7 +37,7 @@ android { } dependencies { - compile 'com.simplemobiletools:commons:2.35.10' + compile 'com.simplemobiletools:commons:2.36.1' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0' compile 'com.theartofdev.edmodo:android-image-cropper:2.4.0' compile 'com.bignerdranch.android:recyclerview-multiselect:0.2' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 4c3176613..faa40950e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -516,9 +516,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View bmp.compress(file.getCompressionFormat(), 90, out) } - private fun saveRotation(input: File, output: File) { - copyFile(input, output) - val exif = ExifInterface(output.absolutePath) + private fun saveRotation(source: File, destination: File) { + copyFile(source, destination) + val exif = ExifInterface(destination.absolutePath) val orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL) val orientationDegrees = (degreesForRotation(orientation) + mRotationDegrees) % 360 exif.setAttribute(ExifInterface.TAG_ORIENTATION, rotationFromDegrees(orientationDegrees))