Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt +17 −12 Original line number Diff line number Diff line Loading @@ -145,14 +145,15 @@ class UnlockedScreenOffAnimationController @Inject constructor( .setDuration(duration.toLong()) .setInterpolator(Interpolators.FAST_OUT_SLOW_IN) .alpha(1f) .withEndAction { .setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { aodUiAnimationPlaying = false // Lock the keyguard if it was waiting for the screen off animation to end. keyguardViewMediatorLazy.get().maybeHandlePendingLock() // Tell the StatusBar to become keyguard for real - we waited on that since it // is slow and would have caused the animation to jank. // Tell the StatusBar to become keyguard for real - we waited on that since // it is slow and would have caused the animation to jank. statusBar.updateIsKeyguard() // Run the callback given to us by the KeyguardVisibilityHelper. Loading @@ -160,7 +161,11 @@ class UnlockedScreenOffAnimationController @Inject constructor( // Done going to sleep, reset this flag. decidedToAnimateGoingToSleep = null // We need to unset the listener. These are persistent for future animators keyguardView.animate().setListener(null) } }) .start() } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt +17 −12 Original line number Diff line number Diff line Loading @@ -145,14 +145,15 @@ class UnlockedScreenOffAnimationController @Inject constructor( .setDuration(duration.toLong()) .setInterpolator(Interpolators.FAST_OUT_SLOW_IN) .alpha(1f) .withEndAction { .setListener(object : AnimatorListenerAdapter() { override fun onAnimationEnd(animation: Animator?) { aodUiAnimationPlaying = false // Lock the keyguard if it was waiting for the screen off animation to end. keyguardViewMediatorLazy.get().maybeHandlePendingLock() // Tell the StatusBar to become keyguard for real - we waited on that since it // is slow and would have caused the animation to jank. // Tell the StatusBar to become keyguard for real - we waited on that since // it is slow and would have caused the animation to jank. statusBar.updateIsKeyguard() // Run the callback given to us by the KeyguardVisibilityHelper. Loading @@ -160,7 +161,11 @@ class UnlockedScreenOffAnimationController @Inject constructor( // Done going to sleep, reset this flag. decidedToAnimateGoingToSleep = null // We need to unset the listener. These are persistent for future animators keyguardView.animate().setListener(null) } }) .start() } Loading