am 605156bd: Fixing crash on pre-api level 19 devices due to getAlpha() call on Drawable.

* commit '605156bd87345beef31bf9164e85fbfc8a1cfc08':
  Fixing crash on pre-api level 19 devices due to getAlpha() call on Drawable.
This commit is contained in:
Winson
2015-09-18 17:23:11 +00:00
committed by Android Git Automerger

View File

@@ -35,6 +35,7 @@ class TransformedImageDrawable {
private float mXPercent;
private float mYPercent;
private int mGravity;
private int mAlpha;
/**
* @param gravity If one of the Gravity center values, the x and y offset will take the width
@@ -50,10 +51,11 @@ class TransformedImageDrawable {
public void setAlpha(int alpha) {
mImage.setAlpha(alpha);
mAlpha = alpha;
}
public int getAlpha() {
return mImage.getAlpha();
return mAlpha;
}
public void updateBounds(Rect bounds) {