diff options
| author | 2021-03-01 17:27:35 -0800 | |
|---|---|---|
| committer | 2021-03-01 17:27:45 -0800 | |
| commit | 115defdc9f1ea8412cced9aae595becfa7ec9ce9 (patch) | |
| tree | 4e0cec6aba503e57763d715ad90856cc81cda302 | |
| parent | f52e94c0cfc8b1eefa597f48efd39f488c9bd774 (diff) | |
Mutate UDFPS FingerprintDrawable
The drawable is loaded from a resource, which by default shares
state across all instances. Mutate it so that enroll, BP,
FPM, Keyguard, etc have their own unique state.
Bug: 178438459
Test: Enter settings, enter enrollment, exit enrollment
Change-Id: I41ef6965d11f89e7c0ee93fd38453a91ef0b4766
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/biometrics/UdfpsAnimation.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsAnimation.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsAnimation.java index 3bf75d105b9f..ed4d47cfa592 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsAnimation.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsAnimation.java @@ -40,6 +40,7 @@ public abstract class UdfpsAnimation extends Drawable { public UdfpsAnimation(@NonNull Context context) { mContext = context; mFingerprintDrawable = context.getResources().getDrawable(R.drawable.ic_fingerprint, null); + mFingerprintDrawable.mutate(); } public void onSensorRectUpdated(@NonNull RectF sensorRect) { |