Fixes DT enrollment asset showing in light mode

Moves DT->LT dynamic color mapping call to after animation asset is set

Test: (manual) In light mode, advance past fingerprint enrollment edu screen and hit back button, observe correct LT asset
Fixes: 246233066
Change-Id: I5425f57b151a6f586338497ee0e5bf247af55f6e
This commit is contained in:
Grace Cheng
2022-09-29 17:47:33 +00:00
parent ee21072a5e
commit 990af9ea7a

View File

@@ -168,8 +168,6 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements
private void updateSfpsFindSensorAnimationAsset() { private void updateSfpsFindSensorAnimationAsset() {
mIllustrationLottie = findViewById(R.id.illustration_lottie); mIllustrationLottie = findViewById(R.id.illustration_lottie);
LottieColorUtils.applyDynamicColors(getApplicationContext(), mIllustrationLottie);
mIllustrationLottie.setVisibility(View.VISIBLE);
final int rotation = getApplicationContext().getDisplay().getRotation(); final int rotation = getApplicationContext().getDisplay().getRotation();
switch (rotation) { switch (rotation) {
@@ -190,6 +188,9 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements
R.raw.fingerprint_edu_lottie_landscape_top_right); R.raw.fingerprint_edu_lottie_landscape_top_right);
break; break;
} }
LottieColorUtils.applyDynamicColors(getApplicationContext(), mIllustrationLottie);
mIllustrationLottie.setVisibility(View.VISIBLE);
mIllustrationLottie.playAnimation(); mIllustrationLottie.playAnimation();
} }