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:
@@ -47,6 +47,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:sudVideo="@raw/face_education"/>
|
||||
|
||||
<!-- Animation res MUST be set in code, gated by config_face_education_use_lottie. -->
|
||||
<com.airbnb.lottie.LottieAnimationView
|
||||
android:id="@+id/illustration_lottie"
|
||||
android:layout_width="match_parent"
|
||||
@@ -54,8 +55,7 @@
|
||||
android:scaleType="fitCenter"
|
||||
android:visibility="invisible"
|
||||
app:lottie_autoPlay="true"
|
||||
app:lottie_loop="true"
|
||||
app:lottie_rawRes="@raw/face_education_lottie" />
|
||||
app:lottie_loop="true" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/illustration_accessibility"
|
||||
|
Reference in New Issue
Block a user