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

Commit 556d3a6f authored by Mathew Inwood's avatar Mathew Inwood
Browse files

Move setTarget() to max-sdk-o greylist.

This method was on the dark grey list in P. It was removed sometime in
the meantime, and re-added in commit 01053cd7, but put onto the grey list
rather then the max-sdk-o greylist (equivalent to dark grey in P).

Move it back as we should not be making API less restrictive in new
letter releases.

Test: m
Bug: 123987101
Change-Id: I5ec57e6523f2d0881e0e4e5597009fc2717bfb85
parent f9a25e52
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.graphics.CanvasProperty;
import android.graphics.Paint;
import android.graphics.RecordingCanvas;
import android.graphics.RenderNode;
import android.os.Build;
import android.util.SparseIntArray;

import com.android.internal.util.VirtualRefBasePtr;
@@ -282,7 +283,7 @@ public class RenderNodeAnimator extends Animator {
        throw new UnsupportedOperationException();
    }

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.O)
    public void setTarget(View view) {
        mViewTarget = view;
        setTarget(mViewTarget.mRenderNode);