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

Commit 13b799ca authored by Austin Delgado's avatar Austin Delgado
Browse files

Fix SFPS icon remaining on screen

Bug: 324372928
Test: Manual
Test: atest com.android.systemui.biometrics
Flag: None
Change-Id: I6c8bfec82b2e79ae0f64d7f5f109a8b463c64449
parent 826fd099
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -115,17 +115,11 @@ constructor(
    }

    private var overlayView: View? = null
    private var lottie: LottieAnimationView? = null

    /** Show the side fingerprint sensor indicator */
    private fun show() {
        overlayView?.let {
            if (it.isAttachedToWindow) {
                lottie = it.requireViewById<LottieAnimationView>(R.id.sidefps_animation)
                lottie?.pauseAnimation()
                lottie?.removeAllLottieOnCompositionLoadedListener()
                windowManager.get().removeView(it)
            }
        if (overlayView?.isAttachedToWindow == true) {
            return
        }

        overlayView = layoutInflater.get().inflate(R.layout.sidefps_view, null, false)