Merge pull request #218 from dorkster/master
Use subsamplingScaleImageView for PNGs
This commit is contained in:
commit
f7deafb2dc
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
}
|
||||
|
||||
private fun addZoomableView() {
|
||||
if (medium.isJpg() && isMenuVisible && view.subsampling_view.visibility == View.GONE) {
|
||||
if ((medium.isJpg() || medium.isPng()) && isMenuVisible && view.subsampling_view.visibility == View.GONE) {
|
||||
view.subsampling_view.apply {
|
||||
beVisible()
|
||||
setDoubleTapZoomScale(1.4f)
|
||||
|
|
Loading…
Reference in a new issue