Merge pull request #218 from dorkster/master

Use subsamplingScaleImageView for PNGs
This commit is contained in:
Tibor Kaputa 2017-04-01 19:30:19 +02:00 committed by GitHub
commit f7deafb2dc

View file

@ -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)