This commit is contained in:
Guillaume 2017-11-01 16:12:27 +01:00 committed by GitHub
parent 5294997eef
commit 1cecff008c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -532,9 +532,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
}
private fun rotationFromDegrees(degrees: Float) = when (degrees) {
90f -> ExifInterface.ORIENTATION_ROTATE_90
180f -> ExifInterface.ORIENTATION_ROTATE_180
270f -> ExifInterface.ORIENTATION_ROTATE_270
180f -> ExifInterface.ORIENTATION_ROTATE_180
90f -> ExifInterface.ORIENTATION_ROTATE_90
else -> ExifInterface.ORIENTATION_NORMAL
}.toString()