diff options
| author | chaviw <chaviw@google.com> | 2021-01-22 15:47:55 -0800 |
|---|---|---|
| committer | chaviw <chaviw@google.com> | 2021-01-25 11:53:55 -0800 |
| commit | ce7428972d302908dfc08d1712e112ebe849796b (patch) | |
| tree | 8d445ac6839e0e2346ea4c2200f58c792c25d57c /core/java/android/view/SurfaceControl.java | |
| parent | 07a787dbe6e73aff9e656b286bda1ae95e596a50 (diff) | |
Remove detachChildren
There's no longer a need to have detachChildren since we only used it to
ensure the children were not deleted before the exit animation. The
timing when closing an app has changed so the app is not stopped until
everything has closed. This means the children of the window will not
try to remove themselves until after the animation completes
Test: Close app with SurfaceView. No hole in exit animation
Bug: 177557720
Change-Id: I48642864d5315b2bf563c675756283fa73554de4
Diffstat (limited to 'core/java/android/view/SurfaceControl.java')
| -rw-r--r-- | core/java/android/view/SurfaceControl.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index aa05787359eb..9932b2a473dc 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -192,7 +192,6 @@ public final class SurfaceControl implements Parcelable { long newParentObject); private static native void nativeReparent(long transactionObj, long nativeObject, long newParentNativeObject); - private static native void nativeSeverChildren(long transactionObj, long nativeObject); private static native Display.HdrCapabilities nativeGetHdrCapabilities(IBinder displayToken); @@ -2998,15 +2997,6 @@ public final class SurfaceControl implements Parcelable { } /** - * @hide - */ - public Transaction detachChildren(SurfaceControl sc) { - checkPreconditions(sc); - nativeSeverChildren(mNativeObject, sc.mNativeObject); - return this; - } - - /** * Fills the surface with the specified color. * @param color A float array with three values to represent r, g, b in range [0..1]. An * invalid color will remove the color fill. |
