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:
committed by
Android (Google) Code Review
commit
3fc8745924
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user