mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add animations to image rotating via menu buttons
This commit is contained in:
@ -557,10 +557,14 @@ class PhotoFragment : ViewPagerFragment() {
|
||||
}
|
||||
|
||||
fun rotateImageViewBy(degrees: Int) {
|
||||
mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360
|
||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||
mIsSubsamplingVisible = false
|
||||
loadBitmap(degrees)
|
||||
if (mIsSubsamplingVisible) {
|
||||
mView.subsampling_view.rotateBy(degrees)
|
||||
} else {
|
||||
mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360
|
||||
mLoadZoomableViewHandler.removeCallbacksAndMessages(null)
|
||||
mIsSubsamplingVisible = false
|
||||
loadBitmap(degrees)
|
||||
}
|
||||
}
|
||||
|
||||
private fun initExtendedDetails() {
|
||||
|
Reference in New Issue
Block a user