Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 990af9ea authored by Grace Cheng's avatar Grace Cheng
Browse files

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
parent ee21072a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -168,8 +168,6 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements

    private void updateSfpsFindSensorAnimationAsset() {
        mIllustrationLottie = findViewById(R.id.illustration_lottie);
        LottieColorUtils.applyDynamicColors(getApplicationContext(), mIllustrationLottie);
        mIllustrationLottie.setVisibility(View.VISIBLE);
        final int rotation = getApplicationContext().getDisplay().getRotation();

        switch (rotation) {
@@ -190,6 +188,9 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements
                        R.raw.fingerprint_edu_lottie_landscape_top_right);
                break;
        }

        LottieColorUtils.applyDynamicColors(getApplicationContext(), mIllustrationLottie);
        mIllustrationLottie.setVisibility(View.VISIBLE);
        mIllustrationLottie.playAnimation();
    }