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

Commit 1e439121 authored by Austin Delgado's avatar Austin Delgado Committed by Android (Google) Code Review
Browse files

Merge "Fix SFPS icon remaining on screen" into main

parents 2c08825b 13b799ca
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)