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

Commit 923a6e24 authored by Austin Delgado's avatar Austin Delgado
Browse files

Pause and Remove lottied on SFPS view removal

Bug: 325548963
Test: atest com.android.systemui.biometrics
Flag: None
Change-Id: Iaaa413c76a246d94233daa4cbe2bc50a5833f0b2
parent fc7755ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -141,6 +141,9 @@ constructor(
    /** Hide the side fingerprint sensor indicator */
    private fun hide() {
        if (overlayView != null) {
            val lottie = overlayView!!.requireViewById<LottieAnimationView>(R.id.sidefps_animation)
            lottie.pauseAnimation()
            lottie.removeAllLottieOnCompositionLoadedListener()
            windowManager.get().removeView(overlayView)
            overlayView = null
        }