Skip to content
Snippets Groups Projects
Commit f0a7446d authored by Grace Cheng's avatar Grace Cheng
Browse files

Pause and remove lottie listeners when overlay hidden

Pause lottie and removeAllLottieOnCompositionLoadedListeners for lottie
when overlayView is hidden

Flag: NONE
Fixes: 340227038
Test: atest com.android.systemui.biometrics
Change-Id: Ie5c81e0cc294d3263068f916778b6db59ba224b3
Merged-In: Iaaa413c76a246d94233daa4cbe2bc50a5833f0b2
parent 4de220f9
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment