Merge "fix ImageView.getImageMatrix()" into jb-mr1-aah-dev

This commit is contained in:
Dake Gu
2013-01-07 18:10:20 -08:00
committed by Android (Google) Code Review

View File

@@ -551,7 +551,10 @@ public class ImageView extends View {
applied to the drawable, be sure to call setImageMatrix().
*/
public Matrix getImageMatrix() {
return mMatrix;
if (mDrawMatrix == null) {
return Matrix.IDENTITY_MATRIX;
}
return mDrawMatrix;
}
public void setImageMatrix(Matrix matrix) {