Do not show fingerprint icon/circle underneath moving target

During enrollment, we have the two elements:
1) Circle and icon on the actual sensor location
2) Moving target, shown after the user enrolled the central location

To avoid confusion during the second part of enrollment when the
moving target is shown, we should hide the central circle/icon during
moving enrollment.

Bug: 187460696
Test: manual
Change-Id: I2339e80654e0000a56d87901d14a88f8a6a35af1
This commit is contained in:
Kevin Chyn
2021-05-11 18:39:56 -07:00
parent f03b63d757
commit 89744e111a

View File

@@ -96,11 +96,6 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable {
return;
}
if (mSensorRect != null) {
canvas.drawOval(mSensorRect, mSensorOutlinePaint);
}
mFingerprintDrawable.draw(canvas);
// Draw moving target
if (mEnrollHelper.isCenterEnrollmentComplete()) {
mFingerprintDrawable.setAlpha(mAlpha == 255 ? 64 : mAlpha);
@@ -117,6 +112,10 @@ public class UdfpsEnrollDrawable extends UdfpsDrawable {
mMovingTargetFpIcon.draw(canvas);
canvas.restore();
} else {
if (mSensorRect != null) {
canvas.drawOval(mSensorRect, mSensorOutlinePaint);
}
mFingerprintDrawable.draw(canvas);
mFingerprintDrawable.setAlpha(mAlpha);
mSensorOutlinePaint.setAlpha(mAlpha);
}