mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user