diff options
author | Alan Viverette <alanv@google.com> | 2015-10-20 09:48:58 -0400 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-10-20 13:51:21 +0000 |
commit | 01320de8446f9414e38f4c17cb8eb9e4d0212afa (patch) | |
tree | f5fecda1d1730c5549f73c2ffe9a0248d0aa8fc5 /core | |
parent | 4ecfbcfdeaed67c3a08002069a530fa58582a48b (diff) | |
download | frameworks_base-01320de8446f9414e38f4c17cb8eb9e4d0212afa.zip frameworks_base-01320de8446f9414e38f4c17cb8eb9e4d0212afa.tar.gz frameworks_base-01320de8446f9414e38f4c17cb8eb9e4d0212afa.tar.bz2 |
Update drawable matrix when bounds change in invalidateDrawable()
Bug: 24797872
Change-Id: Ib2bcce6f7d6fab33633a915882821b00d94e4e44
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/ImageView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index ddbaa9d..cc6ab65 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -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 |