Fix crash due to traffic light face Lottie animation
Load the animation asset only if enabled in the resource config, to avoid crashing on unsupported device configurations. Test: Manual Fixes: 189290180 Change-Id: Iae46c735277777705c1d6f4595b557e4b0b1aef7
This commit is contained in:
@@ -112,6 +112,7 @@ public class FaceEnrollEducation extends BiometricEnrollBase {
|
||||
if (mIsUsingLottie) {
|
||||
mIllustrationDefault.stop();
|
||||
mIllustrationDefault.setVisibility(View.INVISIBLE);
|
||||
mIllustrationLottie.setAnimation(R.raw.face_education_lottie);
|
||||
mIllustrationLottie.setVisibility(View.VISIBLE);
|
||||
mIllustrationLottie.playAnimation();
|
||||
}
|
||||
|
Reference in New Issue
Block a user