Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 605156bd authored by Winson's avatar Winson Committed by Winson Chung
Browse files

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

Bug: 24173665
Change-Id: Ia59481dc7fb52454760c688ba49c90b8507d7900
parent 31860581
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {