diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-05-11 19:13:05 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-05-11 19:13:05 +0000 |
| commit | ab367ab510cc804b370611d4e8e40ffef2c6e379 (patch) | |
| tree | cd78e69fd948c05168cdca5947fe7e8ca42950c3 /core/java/android/view/View.java | |
| parent | 3a8ea8727d703d8f0b790874cd6e63c87cc3f56b (diff) | |
| parent | 599f912e4e3611ca5d537b6780c026bcf44e8395 (diff) | |
Merge "AttachedSurfaceControl: Respond to API feedback." into sc-dev
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; } |
