From b4523b39de7f4a35a2b7d7f87e2fc780bfdfc537 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Fri, 21 Jun 2019 14:16:20 -0700 Subject: [PATCH] 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 --- .../src/com/android/systemui/biometrics/BiometricDialogView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java b/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java index 0f0f09579f873..932e40c77af09 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java @@ -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);