Fix UdfpsView not appearing on BP rotate

Changes UdfpsView window priority to `TYPE_NAVIGATION_BAR_PANEL` from
`TYPE_KEYGUARD_DIALOG` to prevent issues with BP.

Test: atest SystemUITests:com.android.systemui.biometrics
Test: Tested manually by rotating in BP
Bug: 282973622
Change-Id: I47eacca2cf2dee1af17933957dda21b28466c400
This commit is contained in:
Austin Delgado
2023-05-16 13:13:24 -07:00
parent c99c303055
commit 0c2857aef5

View File

@@ -115,7 +115,7 @@ class UdfpsControllerOverlay @JvmOverloads constructor(
private var overlayTouchListener: TouchExplorationStateChangeListener? = null
private val coreLayoutParams = WindowManager.LayoutParams(
WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG,
WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
0 /* flags set in computeLayoutParams() */,
PixelFormat.TRANSLUCENT
).apply {