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

Commit 115defdc authored by Kevin Chyn's avatar Kevin Chyn
Browse files

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
parent f52e94c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {