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
This commit is contained in:
Hiroki Sato
2021-01-08 19:03:12 +09:00
parent 1d30d73d0e
commit 841a838052

View File

@@ -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,