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

Commit 3ab0a839 authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Add keep annotations to KeyButtonRipple

Cherry-pick to resolve conflicts between sc-v2<->master

Bug: 200103245
Change-Id: Id1a3f5c403361958fe95f8f98b7e8ee6ecdd0873
Test: manual
parent a9efae98
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ import android.view.animation.Interpolator;
import com.android.systemui.R;
import com.android.systemui.animation.Interpolators;

import androidx.annotation.Keep;

import java.util.ArrayList;
import java.util.HashSet;

@@ -184,19 +186,27 @@ public class KeyButtonRipple extends Drawable {
        }
    }

    /** Gets the glow alpha, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public float getGlowAlpha() {
        return mGlowAlpha;
    }

    /** Sets the glow alpha, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public void setGlowAlpha(float x) {
        mGlowAlpha = x;
        invalidateSelf();
    }

    /** Gets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public float getGlowScale() {
        return mGlowScale;
    }

    /** Sets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
    @Keep
    public void setGlowScale(float x) {
        mGlowScale = x;
        invalidateSelf();