From 76a9dfe6c72d379fea26a9d010c91f60ade9613d Mon Sep 17 00:00:00 2001 From: Guillaume Date: Wed, 1 Nov 2017 14:52:49 +0100 Subject: [PATCH] .isJpg() --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 59d01ae61..0646498f3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -465,7 +465,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View return@getFileOutputStream } - if (currPath.isImageFast() && !currPath.isPng()) { // Is always JPEG? + if (currPath.isJpg()) { saveRotation(currPath, tmpFile) } else { saveFile(tmpFile, bitmap, it as FileOutputStream)