Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd4121d4 authored by TheScarastic's avatar TheScarastic Committed by Bruno Martins
Browse files

udfps: Change window type to TYPE_DISPLAY_OVERLAY

 * TYPE_KEYGUARD_DIALOG was below volume and navbar and would
   have caused cause issues when HBM was enabled

 * BiometricPrompt uses different layer which again is below
   navbar and causes bright volume and navbar

Change-Id: Ia37930ffd7a28fc8785f26ada3b69a02df0d4891
parent f97e5344
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -729,7 +729,7 @@ public class AuthContainerView extends LinearLayout
        final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT,
                WindowManager.LayoutParams.TYPE_STATUS_BAR_ADDITIONAL,
                WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY,
                windowFlags,
                PixelFormat.TRANSLUCENT);
        lp.privateFlags |= WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS;
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ class UdfpsControllerOverlay(
    private var overlayTouchListener: TouchExplorationStateChangeListener? = null

    private val coreLayoutParams = WindowManager.LayoutParams(
        WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG,
        WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY,
        0 /* flags set in computeLayoutParams() */,
        PixelFormat.TRANSLUCENT
    ).apply {