do not allow changing portrait photos by clicking in fullscreen mode
This commit is contained in:
parent
4848616d88
commit
f821fc0727
1 changed files with 4 additions and 0 deletions
|
@ -466,6 +466,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
|
||||
val sideElementWidth = curWidth - screenWidth
|
||||
val adapter = PortraitPhotosAdapter(context!!, paths, sideElementWidth) { position, x ->
|
||||
if (mIsFullscreen) {
|
||||
return@PortraitPhotosAdapter
|
||||
}
|
||||
|
||||
mView.photo_portrait_stripe.smoothScrollBy((x + itemWidth / 2) - screenWidth / 2, 0)
|
||||
if (paths[position] != mCurrentPortraitPhotoPath) {
|
||||
mCurrentPortraitPhotoPath = paths[position]
|
||||
|
|
Loading…
Reference in a new issue