From 7fdf5d1370a44332f8bf4491d37b23191bc39a7b Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Thu, 27 Feb 2020 12:11:16 -0800 Subject: [PATCH] Fix typo in SurfaceControlViewHost relayout overload Need to point to the other method, not just infinitely recurse. Seems to imply that the tests aren't running in CTS anymore either (this method doesn't have any real users yet). Following up on why the tests aren't running seperately. Bug: 150338132 Test: SurfaceControlViewHostTests Change-Id: Ie43a6affaac3616164c892713b4bc7fc4b775aa1 --- core/java/android/view/SurfaceControlViewHost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/SurfaceControlViewHost.java b/core/java/android/view/SurfaceControlViewHost.java index 4badede2b093b..a3b3f1f72310b 100644 --- a/core/java/android/view/SurfaceControlViewHost.java +++ b/core/java/android/view/SurfaceControlViewHost.java @@ -201,7 +201,7 @@ public class SurfaceControlViewHost { final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(width, height, WindowManager.LayoutParams.TYPE_APPLICATION, 0, PixelFormat.TRANSPARENT); - relayout(width, height); + relayout(lp); } /**