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
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user