Update drawable matrix when bounds change in invalidateDrawable()
Bug: 24797872 Change-Id: Ib2bcce6f7d6fab33633a915882821b00d94e4e44
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user