Merge "Fix the animation in the “How to set up Face Unlock” page can’t be paused or hidden." into main

This commit is contained in:
Treehugger Robot
2025-02-20 02:01:52 -08:00
committed by Android (Google) Code Review

View File

@@ -128,6 +128,16 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
mIllustrationLottie.setAnimation(R.raw.face_education_lottie); mIllustrationLottie.setAnimation(R.raw.face_education_lottie);
mIllustrationLottie.setVisibility(View.VISIBLE); mIllustrationLottie.setVisibility(View.VISIBLE);
mIllustrationLottie.playAnimation(); mIllustrationLottie.playAnimation();
mIllustrationLottie.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (mIllustrationLottie.isAnimating()) {
mIllustrationLottie.pauseAnimation();
} else {
mIllustrationLottie.resumeAnimation();
}
}
});
} }
mFooterBarMixin = getLayout().getMixin(FooterBarMixin.class); mFooterBarMixin = getLayout().getMixin(FooterBarMixin.class);