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

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

Merge "Made View#setTransitionAlpha(),getTransitionAlpha() public"

parents 14c90015 c5713cbf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49079,6 +49079,7 @@ package android.view {
    method protected int getTopPaddingOffset();
    method public android.view.TouchDelegate getTouchDelegate();
    method public java.util.ArrayList<android.view.View> getTouchables();
    method public float getTransitionAlpha();
    method public java.lang.String getTransitionName();
    method public float getTranslationX();
    method public float getTranslationY();
@@ -49407,6 +49408,7 @@ package android.view {
    method public void setTooltipText(java.lang.CharSequence);
    method public final void setTop(int);
    method public void setTouchDelegate(android.view.TouchDelegate);
    method public void setTransitionAlpha(float);
    method public final void setTransitionName(java.lang.String);
    method public void setTranslationX(float);
    method public void setTranslationY(float);
+11 −17
Original line number Diff line number Diff line
@@ -4159,7 +4159,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        float mAlpha = 1f;
        /**
         * The opacity of the view as manipulated by the Fade transition. This is a hidden
         * The opacity of the view as manipulated by the Fade transition. This is a
         * property only used by transitions, which is composited with the other alpha
         * values to calculate the final visual alpha value.
         */
@@ -15729,15 +15729,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    }
    /**
     * This property is hidden and intended only for use by the Fade transition, which
     * animates it to produce a visual translucency that does not side-effect (or get
     * affected by) the real alpha property. This value is composited with the other
     * alpha value (and the AlphaAnimation value, when that is present) to produce
     * a final visual translucency result, which is what is passed into the DisplayList.
     *
     * @hide
     * This property is intended only for use by the Fade transition, which animates it
     * to produce a visual translucency that does not side-effect (or get affected by)
     * the real alpha property. This value is composited with the other alpha value
     * (and the AlphaAnimation value, when that is present) to produce a final visual
     * translucency result, which is what is passed into the DisplayList.
     */
    @UnsupportedAppUsage
    public void setTransitionAlpha(float alpha) {
        ensureTransformationInfo();
        if (mTransformationInfo.mTransitionAlpha != alpha) {
@@ -15760,16 +15757,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    }
    /**
     * This property is hidden and intended only for use by the Fade transition, which
     * animates it to produce a visual translucency that does not side-effect (or get
     * affected by) the real alpha property. This value is composited with the other
     * alpha value (and the AlphaAnimation value, when that is present) to produce
     * a final visual translucency result, which is what is passed into the DisplayList.
     *
     * @hide
     * This property is intended only for use by the Fade transition, which animates
     * it to produce a visual translucency that does not side-effect (or get affected
     * by) the real alpha property. This value is composited with the other alpha
     * value (and the AlphaAnimation value, when that is present) to produce a final
     * visual translucency result, which is what is passed into the DisplayList.
     */
    @ViewDebug.ExportedProperty(category = "drawing")
    @UnsupportedAppUsage
    public float getTransitionAlpha() {
        return mTransformationInfo != null ? mTransformationInfo.mTransitionAlpha : 1;
    }