From 48286b8df0294ffd25dc342d7b995d4cfebf6931 Mon Sep 17 00:00:00 2001 From: lbill Date: Thu, 23 Jun 2022 08:26:52 +0000 Subject: [PATCH] Well control enrolling icon animation by UX design T: * Always plays the scanning animation when user enrolling. QPR: * At beginning / Orientation change: Play the scanning animation until user interact with FPS * When progress moved : Play scanning animation once * Error : Show message(red color) to notify user Bug: 232018092 Test: With Rare-FPS device, Settings > Security > Fingerprint enrollment, enrolling a new fingerprint, check the mIconAnimationDrawable Test: With Side-FPS device, Settings > Security > Fingerprint enrollment, enrolling a new fingerprint, check the mIconAnimationDrawable Test: make RunSettingsGoogleRoboTests ROBOTEST_FILTER= \ "com.google.android.settings.biometrics.fingerprint.FingerprintEnrollEnrollingTest" Change-Id: I64a1bd24260205b651036c34e6e879b59bef75cc --- .../biometrics/fingerprint/FingerprintEnrollEnrolling.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java index df65a69c7c6..bf04d5ffa3d 100644 --- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java +++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java @@ -639,13 +639,17 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling { new Animator.AnimatorListener() { @Override - public void onAnimationStart(Animator animation) { } + public void onAnimationStart(Animator animation) { + startIconAnimation(); + } @Override public void onAnimationRepeat(Animator animation) { } @Override public void onAnimationEnd(Animator animation) { + stopIconAnimation(); + if (mProgressBar.getProgress() >= PROGRESS_BAR_MAX) { mProgressBar.postDelayed(mDelayedFinishRunnable, getFinishDelay()); }