mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
Use subsamplingScaleImageView for PNGs
This commit is contained in:
parent
2759a476aa
commit
6ff17351cc
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addZoomableView() {
|
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 {
|
view.subsampling_view.apply {
|
||||||
beVisible()
|
beVisible()
|
||||||
setDoubleTapZoomScale(1.4f)
|
setDoubleTapZoomScale(1.4f)
|
||||||
|
|
Loading…
Reference in a new issue