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

Commit e3edf35b authored by TheScarastic's avatar TheScarastic Committed by LuK1337
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 5ac29cb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -793,7 +793,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_SUB_PANEL,
                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
@@ -572,7 +572,7 @@ public class UdfpsController implements DozeReceiver {
        checkArgument(mSensorProps != null);

        mCoreLayoutParams = new WindowManager.LayoutParams(
                WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG,
                WindowManager.LayoutParams.TYPE_DISPLAY_OVERLAY,
                getCoreLayoutParamFlags(),
                PixelFormat.TRANSLUCENT);
        mCoreLayoutParams.setTitle(TAG);