diff options
| author | Andrey Kulikov <andreykulikov@google.com> | 2019-02-05 19:13:19 +0000 |
|---|---|---|
| committer | Andrey Kulikov <andreykulikov@google.com> | 2019-02-12 15:29:14 +0000 |
| commit | 7c4e6931040392c1dc5ec3a750dd781edd74c203 (patch) | |
| tree | c056881cf354c2a2a716111492f3672dbb85fe13 /core/java/android/view/GhostView.java | |
| parent | d224e24015d5d614748378095dd3d683803db93c (diff) | |
Restrict platform's GhostView and unhide a method needed for a backport
Bug: 117521193
Bug: 123768642
Test: added a cts test for the new method
Change-Id: If933dbe16e756bf4e32d1cf43d9d3ecc67e37174
Diffstat (limited to 'core/java/android/view/GhostView.java')
| -rw-r--r-- | core/java/android/view/GhostView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/view/GhostView.java b/core/java/android/view/GhostView.java index 74c801b1dc5b..3286bd623694 100644 --- a/core/java/android/view/GhostView.java +++ b/core/java/android/view/GhostView.java @@ -20,6 +20,7 @@ import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.RecordingCanvas; import android.graphics.RenderNode; +import android.os.Build; import android.widget.FrameLayout; import java.util.ArrayList; @@ -135,12 +136,12 @@ public class GhostView extends View { return ghostView; } - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) public static GhostView addGhost(View view, ViewGroup viewGroup) { return addGhost(view, viewGroup, null); } - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) public static void removeGhost(View view) { GhostView ghostView = view.mGhostView; if (ghostView != null) { |
