mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 12:00:35 +01:00
do not allow changing portrait photos by clicking in fullscreen mode
This commit is contained in:
parent
4848616d88
commit
f821fc0727
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user