Merge pull request #2954 from gmasil/fix-static-webp-produce-high-cpu-usage

fix bug where static webp images will cause high CPU usage
This commit is contained in:
Tibor Kaputa
2023-08-25 09:52:11 +02:00
committed by GitHub

View File

@ -435,7 +435,6 @@ class PhotoFragment : ViewPagerFragment() {
if (drawable.intrinsicWidth == 0) { if (drawable.intrinsicWidth == 0) {
loadWithGlide(path, addZoomableView) loadWithGlide(path, addZoomableView)
} else { } else {
drawable.setLoopLimit(0)
mView.gestures_view.setImageDrawable(drawable) mView.gestures_view.setImageDrawable(drawable)
} }
} else { } else {