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

Commit 5754598e authored by Andrey Kulikov's avatar Andrey Kulikov
Browse files

Makes View#setAnimationMatrix public

Bug: 117520374
Test: None. There is no getter for it so it's not easy to test. Probably it should be tested on RenderNode side instead.
Change-Id: I399ebb772e557c849b02a1d71be7821121a9ce8a
parent 4bcd414e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49279,6 +49279,7 @@ package android.view {
    method public void setActivated(boolean);
    method public void setAlpha(float);
    method public void setAnimation(android.view.animation.Animation);
    method public void setAnimationMatrix(android.graphics.Matrix);
    method public void setAutofillHints(java.lang.String...);
    method public void setAutofillId(android.view.autofill.AutofillId);
    method public void setBackground(android.graphics.drawable.Drawable);
+11 −3
Original line number Diff line number Diff line
@@ -16288,9 +16288,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
    }
    /** @hide */
    @UnsupportedAppUsage
    public void setAnimationMatrix(Matrix matrix) {
    /**
     * Changes the transformation matrix on the view. This is used in animation frameworks,
     * such as {@link android.transition.Transition}. When the animation finishes, the matrix
     * should be cleared by calling this method with <code>null</code> as the matrix parameter.
     * Application developers should use transformation methods like {@link #setRotation(float)},
     * {@link #setScaleX(float)}, {@link #setScaleX(float)}, {@link #setTranslationX(float)}}
     * and {@link #setTranslationY(float)} (float)}} instead.
     *
     * @param matrix The matrix, null indicates that the matrix should be cleared.
     */
    public void setAnimationMatrix(@Nullable Matrix matrix) {
        invalidateViewProperty(true, false);
        mRenderNode.setAnimationMatrix(matrix);
        invalidateViewProperty(false, true);