commit | b4523b39de7f4a35a2b7d7f87e2fc780bfdfc537 | [log] [tgz] |
---|---|---|
author | Kevin Chyn <kchyn@google.com> | Fri Jun 21 14:16:20 2019 -0700 |
committer | Kevin Chyn <kchyn@google.com> | Fri Jun 21 14:16:20 2019 -0700 |
tree | 3c70c3dce6ff5240c33387750a7c436c4c991a5d | |
parent | 839b1659cd31f2cefe8254b98b3720c07fb99caa [diff] |
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
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java b/packages/SystemUI/src/com/android/systemui/biometrics/BiometricDialogView.java index 0f0f095..932e40c 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 @@ mContext.getTheme()); image.setColorFilter(mDevicePolicyManager.getOrganizationColorForUser(mUserId), PorterDuff.Mode.DARKEN); + backgroundView.setScaleType(ImageView.ScaleType.CENTER_CROP); backgroundView.setImageDrawable(image); } else { backgroundView.setImageDrawable(null);