mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
do not allow changing portrait photos by clicking in fullscreen mode
This commit is contained in:
@ -466,6 +466,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
|
|
||||||
val sideElementWidth = curWidth - screenWidth
|
val sideElementWidth = curWidth - screenWidth
|
||||||
val adapter = PortraitPhotosAdapter(context!!, paths, sideElementWidth) { position, x ->
|
val adapter = PortraitPhotosAdapter(context!!, paths, sideElementWidth) { position, x ->
|
||||||
|
if (mIsFullscreen) {
|
||||||
|
return@PortraitPhotosAdapter
|
||||||
|
}
|
||||||
|
|
||||||
mView.photo_portrait_stripe.smoothScrollBy((x + itemWidth / 2) - screenWidth / 2, 0)
|
mView.photo_portrait_stripe.smoothScrollBy((x + itemWidth / 2) - screenWidth / 2, 0)
|
||||||
if (paths[position] != mCurrentPortraitPhotoPath) {
|
if (paths[position] != mCurrentPortraitPhotoPath) {
|
||||||
mCurrentPortraitPhotoPath = paths[position]
|
mCurrentPortraitPhotoPath = paths[position]
|
||||||
|
Reference in New Issue
Block a user