Make ripple window truly full screen.

Test: Manually
Bug: 183382912
Change-Id: I4bebefcd855a51c0fc682e186ea568368fb48c1b
This commit is contained in:
Shan Huang
2021-04-07 10:51:26 +08:00
parent ceaff3862f
commit 629713bb83

View File

@@ -114,9 +114,11 @@ public class WirelessChargingAnimation {
params.height = WindowManager.LayoutParams.MATCH_PARENT;
params.width = WindowManager.LayoutParams.MATCH_PARENT;
params.format = PixelFormat.TRANSLUCENT;
params.type = WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG;
params.setTitle("Charging Animation");
params.layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
params.setFitInsetsTypes(0 /* ignore all system bar insets */);
params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
| WindowManager.LayoutParams.FLAG_DIM_BEHIND;