diff options
| author | 2018-11-29 14:42:48 +0000 | |
|---|---|---|
| committer | 2018-11-29 14:42:48 +0000 | |
| commit | ec7eeb5992a0096de676a2b524b59f9c46536b90 (patch) | |
| tree | a80dcaeb98affeda230a160cce25b30fa0d002fe | |
| parent | 8c0d41ac2dc5401ab4ba929b21726ed828ebc8d2 (diff) | |
| parent | b37dcbc2abf29a4f0e200c9ad41fe0e78e688604 (diff) | |
Merge "Restrict unsupported API usage to Scene#mEnterAction/mExitAction/setCurrentScene"
| -rw-r--r-- | core/java/android/transition/Scene.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/transition/Scene.java b/core/java/android/transition/Scene.java index 7e499f29122a..b1fc17a4ecd1 100644 --- a/core/java/android/transition/Scene.java +++ b/core/java/android/transition/Scene.java @@ -20,6 +20,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.UnsupportedAppUsage; import android.content.Context; +import android.os.Build; import android.util.SparseArray; import android.view.LayoutInflater; import android.view.View; @@ -38,9 +39,9 @@ public final class Scene { private int mLayoutId = -1; private ViewGroup mSceneRoot; private View mLayout; // alternative to layoutId - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) Runnable mEnterAction; - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) Runnable mExitAction; /** @@ -200,7 +201,7 @@ public final class Scene { * * @param sceneRoot The view on which the current scene is being set */ - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) static void setCurrentScene(@NonNull View sceneRoot, @Nullable Scene scene) { sceneRoot.setTagInternal(com.android.internal.R.id.current_scene, scene); } |