diff options
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index c1c892c98653..e0c26cb0e5f0 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -29599,7 +29599,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, return mScrollCaptureInternal; } - ViewRoot getViewRoot() { + AttachedSurfaceControl getRootSurfaceControl() { return mViewRootImpl; } @@ -31043,17 +31043,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } /** - * @return The {@link android.view.ViewRoot} interface for this View. This will only - * return a non-null value when called between {@link #onAttachedToWindow} and - * {@link #onDetachedFromWindow}. - * - * The ViewRoot itself is not a View, it is just the interface to the windowing-system - * object that contains the entire view hierarchy. For the root View of a given hierarchy - * see {@link #getRootView}. + * The AttachedSurfaceControl itself is not a View, it is just the interface to the + * windowing-system object that contains the entire view hierarchy. + * For the root View of a given hierarchy see {@link #getRootView}. + + * @return The {@link android.view.AttachedSurfaceControl} interface for this View. + * This will only return a non-null value when called between {@link #onAttachedToWindow} + * and {@link #onDetachedFromWindow}. */ - public @Nullable ViewRoot getViewRoot() { + public @Nullable AttachedSurfaceControl getRootSurfaceControl() { if (mAttachInfo != null) { - return mAttachInfo.getViewRoot(); + return mAttachInfo.getRootSurfaceControl(); } return null; } |
