This commit is contained in:
Guillaume 2017-11-01 14:52:49 +01:00 committed by GitHub
parent fdc1063838
commit 76a9dfe6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
return@getFileOutputStream return@getFileOutputStream
} }
if (currPath.isImageFast() && !currPath.isPng()) { // Is always JPEG? if (currPath.isJpg()) {
saveRotation(currPath, tmpFile) saveRotation(currPath, tmpFile)
} else { } else {
saveFile(tmpFile, bitmap, it as FileOutputStream) saveFile(tmpFile, bitmap, it as FileOutputStream)