Merge "Add keep annotations to KeyButtonRipple" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5e11d0b9f6
@@ -37,6 +37,8 @@ import android.view.animation.Interpolator;
|
|||||||
import com.android.systemui.R;
|
import com.android.systemui.R;
|
||||||
import com.android.systemui.animation.Interpolators;
|
import com.android.systemui.animation.Interpolators;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashSet;
|
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() {
|
public float getGlowAlpha() {
|
||||||
return mGlowAlpha;
|
return mGlowAlpha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Sets the glow alpha, used by {@link android.animation.ObjectAnimator} via reflection. */
|
||||||
|
@Keep
|
||||||
public void setGlowAlpha(float x) {
|
public void setGlowAlpha(float x) {
|
||||||
mGlowAlpha = x;
|
mGlowAlpha = x;
|
||||||
invalidateSelf();
|
invalidateSelf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Gets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
|
||||||
|
@Keep
|
||||||
public float getGlowScale() {
|
public float getGlowScale() {
|
||||||
return mGlowScale;
|
return mGlowScale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Sets the glow scale, used by {@link android.animation.ObjectAnimator} via reflection. */
|
||||||
|
@Keep
|
||||||
public void setGlowScale(float x) {
|
public void setGlowScale(float x) {
|
||||||
mGlowScale = x;
|
mGlowScale = x;
|
||||||
invalidateSelf();
|
invalidateSelf();
|
||||||
|
|||||||
Reference in New Issue
Block a user