From 841a838052811108cabefaa66fe111868d65ba99 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Fri, 8 Jan 2021 19:03:12 +0900 Subject: [PATCH] Make ScreenPinningRequest#getWindowLayoutParams protected This change gives the OEM system UI an ability to customize the window layout params of pinning request confirmation dialog. Bug: 177028289 Test: manual. Overriding layout works in ArcSystemUI. Change-Id: I4b2bff193b9f628a54be27f5e81497bdd591687f --- .../src/com/android/systemui/recents/ScreenPinningRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java b/packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java index c2ba3440f19f2..aa8d710e75705 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +++ b/packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java @@ -130,7 +130,7 @@ public class ScreenPinningRequest implements View.OnClickListener, } } - private WindowManager.LayoutParams getWindowLayoutParams() { + protected WindowManager.LayoutParams getWindowLayoutParams() { final WindowManager.LayoutParams lp = new WindowManager.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,