Fix Incorrect lottie status on the beginning of enrolling UDFPS

Bug: b/271209610
Test: 1. adb root
      2. adb shell setprop sys.fflag.override.settings_biometrics2_enrollment true
      3. Excute fingerprint enroll process & check the state of enroll progress is
         correct
Change-Id: I3cac369e9dcf939a09dce11a7b9e96952bceeee8
This commit is contained in:
Vincent Wang
2023-03-02 07:02:55 +00:00
parent bfd3c051be
commit 3ff1939b59
3 changed files with 5 additions and 6 deletions

View File

@@ -261,9 +261,10 @@ public class FingerprintEnrollEnrollingUdfpsFragment extends Fragment {
final int progress = getProgress(enrollmentProgress);
mUdfpsEnrollView.onEnrollmentProgress(enrollmentProgress.getRemaining(),
enrollmentProgress.getSteps());
if (mProgressViewModel.getProgressLiveData().getValue().getSteps() != -1) {
mUdfpsEnrollView.onEnrollmentProgress(enrollmentProgress.getRemaining(),
enrollmentProgress.getSteps());
}
if (animate) {
animateProgress(progress);

View File

@@ -180,8 +180,6 @@ public class UdfpsEnrollProgressBarDrawable extends Drawable {
}
void onEnrollmentProgress(final int remaining, final int totalSteps) {
android.util.Log.e(TAG, "remaining =" + remaining);
android.util.Log.e(TAG, "totalSteps =" + totalSteps);
mAfterFirstTouch = true;
updateState(remaining, totalSteps, false /* showingHelp */);
}