Merge "Update drawable matrix when bounds change in invalidateDrawable()" into mnc-dr-dev

This commit is contained in:
Alan Viverette
2015-10-20 16:54:12 +00:00
committed by Android (Google) Code Review

View File

@@ -234,6 +234,8 @@ public class ImageView extends View {
if (w != mDrawableWidth || h != mDrawableHeight) {
mDrawableWidth = w;
mDrawableHeight = h;
// updates the matrix, which is dependent on the bounds
configureBounds();
}
}
/* we invalidate the whole view in this case because it's very