Merge cherrypicks of [14740967, 14741245, 14741024, 14740327, 14740328, 14740329, 14741350, 14741106, 14741246, 14741247, 14741186, 14741107, 14740385, 14740386, 14740751, 14741025, 14741188, 14741370] into sc-release
Change-Id: I0e6b0458f907a9d14a972659555d582b0bc342ef
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"
|
||||
|
||||
@@ -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