mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-27 09:57:31 +01:00
fix wrong rotation for horizontally flipped images
This commit is contained in:
parent
639cd0aa8a
commit
13e08935ee
@ -22,6 +22,7 @@ import android.widget.RelativeLayout
|
||||
import androidx.exifinterface.media.ExifInterface.ORIENTATION_ROTATE_180
|
||||
import androidx.exifinterface.media.ExifInterface.ORIENTATION_ROTATE_270
|
||||
import androidx.exifinterface.media.ExifInterface.ORIENTATION_ROTATE_90
|
||||
import androidx.exifinterface.media.ExifInterface.ORIENTATION_TRANSVERSE
|
||||
import androidx.exifinterface.media.ExifInterface.TAG_ORIENTATION
|
||||
import com.alexvasilkov.gestures.GestureController
|
||||
import com.alexvasilkov.gestures.State
|
||||
@ -343,7 +344,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
private fun degreesForRotation(orientation: Int) = when (orientation) {
|
||||
ORIENTATION_ROTATE_270 -> 270
|
||||
ORIENTATION_ROTATE_180 -> 180
|
||||
ORIENTATION_ROTATE_90 -> 90
|
||||
ORIENTATION_ROTATE_90, ORIENTATION_TRANSVERSE -> 90
|
||||
else -> 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user