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

Commit a14aa7c1 authored by Andreas Miko's avatar Andreas Miko
Browse files

Fix unlock jank - send `forceIfAnimating` only for biometric unlocks

The launcher animation may get interrupted at >60% due to a fail-safe that is front running the launcher animation.

Bug: b/301903832
Test: Verified fix by bug reporter

Change-Id: Id8c9dfbbfb2af0b769c113824ba7b39db00b30b2
parent 010f0da5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -445,7 +445,8 @@ class KeyguardUnlockAnimationController @Inject constructor(
        if (!keyguardStateController.isKeyguardGoingAway &&
                willUnlockWithInWindowLauncherAnimations) {
            try {
                launcherUnlockController?.setUnlockAmount(1f, true /* forceIfAnimating */)
                launcherUnlockController?.setUnlockAmount(1f,
                        biometricUnlockControllerLazy.get().isWakeAndUnlock /* forceIfAnimating */)
            } catch (e: DeadObjectException) {
                Log.e(TAG, "launcherUnlockAnimationController was dead, but non-null in " +
                        "onKeyguardGoingAwayChanged(). Catching exception as this should mean " +