Merge "Fix Incorrect lottie status on the beginning of enrolling UDFPS" into udc-dev

This commit is contained in:
Vincent Wang
2023-03-02 12:55:19 +00:00
committed by Android (Google) Code Review
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 */);
}