am 82fd8428: Merge "Protect against ImageView changing to a null Drawable during Transition." into lmp-mr1-dev
* commit '82fd842827fcdb3570d0c606bd049f42bf2b3fba': Protect against ImageView changing to a null Drawable during Transition.
This commit is contained in:
@@ -1120,6 +1120,9 @@ public class ImageView extends View {
|
|||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void animateTransform(Matrix matrix) {
|
public void animateTransform(Matrix matrix) {
|
||||||
|
if (mDrawable == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (matrix == null) {
|
if (matrix == null) {
|
||||||
mDrawable.setBounds(0, 0, getWidth(), getHeight());
|
mDrawable.setBounds(0, 0, getWidth(), getHeight());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user