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

Commit b4523b39 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Scale the work profile background properly

Fixes: 135742033

Test: Set up work profile, use BiometricPromptDemo on both profiles
      Background is not cut off on top / bottom anymore

Change-Id: I40476782c6b38a3562136d6ad0d2f465074dcfc1
parent 839b1659
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -267,6 +267,7 @@ public abstract class BiometricDialogView extends LinearLayout {
                    mContext.getTheme());
            image.setColorFilter(mDevicePolicyManager.getOrganizationColorForUser(mUserId),
                    PorterDuff.Mode.DARKEN);
            backgroundView.setScaleType(ImageView.ScaleType.CENTER_CROP);
            backgroundView.setImageDrawable(image);
        } else {
            backgroundView.setImageDrawable(null);