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

Commit ea2bc6ff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Turn off AA while notification expanding animation is running"

parents 4bc02409 d192911e
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -825,6 +825,14 @@ public class GradientDrawable extends Drawable {
        mFillPaint.setXfermode(mode);
        mFillPaint.setXfermode(mode);
    }
    }


    /**
     * @param aa to draw this drawable with
     * @hide
     */
    public void setAntiAlias(boolean aa) {
        mFillPaint.setAntiAlias(aa);
    }

    private void buildPathIfDirty() {
    private void buildPathIfDirty() {
        final GradientState st = mGradientState;
        final GradientState st = mGradientState;
        if (mPathIsDirty) {
        if (mPathIsDirty) {
+3 −0
Original line number Original line Diff line number Diff line
@@ -249,6 +249,9 @@ public class NotificationBackgroundView extends View {
                    (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0);
                    (GradientDrawable) ((LayerDrawable) mBackground).getDrawable(0);
            gradientDrawable.setXfermode(
            gradientDrawable.setXfermode(
                    running ? new PorterDuffXfermode(PorterDuff.Mode.SRC) : null);
                    running ? new PorterDuffXfermode(PorterDuff.Mode.SRC) : null);
            // Speed optimization: disable AA if transfer mode is not SRC_OVER. AA is not easy to
            // spot during animation anyways.
            gradientDrawable.setAntiAlias(!running);
        }
        }
        if (!mExpandAnimationRunning) {
        if (!mExpandAnimationRunning) {
            setDrawableAlpha(mDrawableAlpha);
            setDrawableAlpha(mDrawableAlpha);