There's no reason to scale filmstrip items to anything other
than the fixed filmstrip scale, and doing otherwise interferes
with Glide caching and introduces flickers upon zoom.
Bug:
17597708
Change-Id: Ia143b4d95a48e9e23bbf36ec0edf93599caaa01b
return null;
}
- int width = Math.round(mScale * getWidth());
- int height = Math.round(mScale * getHeight());
+ // Always scale by fixed filmstrip scale, since we only show items when
+ // in filmstrip. Preloading images with a different scale and bounds
+ // interferes with caching.
+ int width = Math.round(FILM_STRIP_SCALE * getWidth());
+ int height = Math.round(FILM_STRIP_SCALE * getHeight());
+ Log.v(TAG, "suggesting item bounds: " + width + "x" + height);
mDataAdapter.suggestViewSizeBound(width, height);
data.prepare();