allow zooming in a lot more at fullscreen photos

This commit is contained in:
tibbi 2017-04-03 18:40:08 +02:00
parent 94258a57fa
commit ebc6c2ef3d
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ class PhotoFragment : ViewPagerFragment() {
private fun addZoomableView() { private fun addZoomableView() {
if ((medium.isImage()) && isMenuVisible && view.subsampling_view.visibility == View.GONE) { if ((medium.isImage()) && isMenuVisible && view.subsampling_view.visibility == View.GONE) {
view.subsampling_view.apply { view.subsampling_view.apply {
maxScale = 10f
beVisible() beVisible()
setDoubleTapZoomScale(2f) setDoubleTapZoomScale(2f)
setImage(ImageSource.uri(medium.path)) setImage(ImageSource.uri(medium.path))