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

View file

@ -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)