Merge "SurfaceControlViewHost: Clone control for SurfacePackage" into tm-dev am: bb4e0de2de

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16980564

Change-Id: I75e77ff227e7164ba7ed43ecc93a440612532e48
This commit is contained in:
Rob Carr
2022-02-23 16:44:24 +00:00
committed by Automerger Merge Worker

View File

@@ -328,7 +328,8 @@ public class SurfaceControlViewHost {
*/
public @Nullable SurfacePackage getSurfacePackage() {
if (mSurfaceControl != null && mAccessibilityEmbeddedConnection != null) {
return new SurfacePackage(mSurfaceControl, mAccessibilityEmbeddedConnection,
return new SurfacePackage(new SurfaceControl(mSurfaceControl, "getSurfacePackage"),
mAccessibilityEmbeddedConnection,
mWm.getFocusGrantToken(), mRemoteInterface);
} else {
return null;