From adf0cabe0a1ac3efecb2f46dffd0ca5fa22ba5fb Mon Sep 17 00:00:00 2001 From: Curtis Belmonte Date: Wed, 26 May 2021 15:45:38 -0700 Subject: [PATCH] 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 --- res/layout/face_enroll_education.xml | 4 ++-- .../android/settings/biometrics/face/FaceEnrollEducation.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/layout/face_enroll_education.xml b/res/layout/face_enroll_education.xml index 646856fcfdd..01494790c97 100644 --- a/res/layout/face_enroll_education.xml +++ b/res/layout/face_enroll_education.xml @@ -47,6 +47,7 @@ android:layout_height="wrap_content" app:sudVideo="@raw/face_education"/> + + app:lottie_loop="true" />