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

Commit 27039097 authored by MiltonWu's avatar MiltonWu Committed by Milton Wu
Browse files

Refine udfps enrolling icon

Refine fingerprint enrolling icon show/hide logic

Test: Manually test udfps enrolling flow
Bug: 313801674
Flag: NA
Change-Id: I8d10a2048d74efa8b0a5bf025dd81df0a9041274
parent e8d26737
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ public class UdfpsEnrollEnrollingView extends GlifLayout {
                displayInfo.getNaturalWidth(),
                displayInfo.getNaturalHeight(),
                scaleFactor,
                displayInfo.rotation);
                displayInfo.rotation,
                udfpsProps.sensorType);

        mUdfpsEnrollView.setOverlayParams(params);
        mUdfpsEnrollView.setEnrollHelper(udfpsEnrollHelper);
+4 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.settings.biometrics.fingerprint;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.RectF;
import android.hardware.fingerprint.FingerprintSensorProperties;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
@@ -202,7 +203,9 @@ public class UdfpsEnrollView extends FrameLayout implements UdfpsEnrollHelper.Li
    }

    private void onFingerDown() {
        if (mOverlayParams.getSensorType() == FingerprintSensorProperties.TYPE_UDFPS_OPTICAL) {
            mFingerprintDrawable.setShouldSkipDraw(true);
        }
        mFingerprintDrawable.invalidateSelf();
    }

+2 −2
Original line number Diff line number Diff line
@@ -260,8 +260,8 @@ public class UdfpsEnrollView extends FrameLayout {
                displayInfo.getNaturalWidth(),
                displayInfo.getNaturalHeight(),
                scaleFactor,
                displayInfo.rotation);

                displayInfo.rotation,
                mSensorProperties.sensorType);

        post(() -> {
            mProgressBarRadius =