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

Commit 3ff1939b authored by Vincent Wang's avatar Vincent Wang
Browse files

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
parent bfd3c051
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@
        android:layout_height="200dp"
        android:layout_alignParentTop="true"
        android:layout_alignParentStart="true"
        android:layout_marginTop="294dp"
        android:layout_marginTop="206dp"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="17dp"
        android:scaleType="centerInside"
+4 −3
Original line number Diff line number Diff line
@@ -261,9 +261,10 @@ public class FingerprintEnrollEnrollingUdfpsFragment extends Fragment {

        final int progress = getProgress(enrollmentProgress);


        if (mProgressViewModel.getProgressLiveData().getValue().getSteps() != -1) {
            mUdfpsEnrollView.onEnrollmentProgress(enrollmentProgress.getRemaining(),
                    enrollmentProgress.getSteps());
        }

        if (animate) {
            animateProgress(progress);
+0 −2
Original line number Diff line number Diff line
@@ -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 */);
    }