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

Commit 71e324e1 authored by Winson's avatar Winson Committed by android-build-merger
Browse files

Merge "Fix ColorStateListDrawable bounds handling" into qt-dev am: fcbde524

am: d518618c

Change-Id: I50574f8b3806c0ed8eda3b1c620b7b26d8c087ca
parents c9561660 d518618c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.graphics.BlendMode;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.util.MathUtils;

/**
@@ -135,6 +136,12 @@ public class ColorStateListDrawable extends Drawable implements Drawable.Callbac
        return mColorDrawable.getOpacity();
    }

    @Override
    protected void onBoundsChange(Rect bounds) {
        super.onBoundsChange(bounds);
        mColorDrawable.setBounds(bounds);
    }

    @Override
    protected boolean onStateChange(int[] state) {
        if (mState.mColor != null) {