From 745adda5a494bbc33a4d63475d30e3448b42481f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 13 Jan 2019 20:38:42 +0100 Subject: [PATCH] simplifying some code at image rotating --- .../gallery/pro/activities/ViewPagerActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt index 0d09d339d..fac43adb8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt @@ -618,9 +618,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View return@getFileOutputStream } - val oldLastModified = getCurrentFile().lastModified() + val oldLastModified = File(oldPath).lastModified() if (oldPath.isJpg()) { - copyFile(getCurrentPath(), tmpPath) + copyFile(oldPath, tmpPath) saveExifRotation(ExifInterface(tmpPath), mRotationDegrees) } else { val inputstream = getFileInputStreamSync(oldPath)