Merge "Fix jank when launching an activity from an occluding activity." into sc-dev am: f01d5502fb am: 325f2dbb9f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15471456

Change-Id: Ifb63bbfc0d8fc284098a26f5d96db242f1d2aef8
This commit is contained in:
Issei Suzuki
2021-08-05 15:49:19 +00:00
committed by Automerger Merge Worker

View File

@@ -386,7 +386,9 @@ class KeyguardController {
// can be committed before KEYGUARD_OCCLUDE transition is handled.
// Set mRequestForceTransition flag to make sure that the app transition animation
// is applied for such case.
if (topActivity != null) {
// TODO(b/194243906): Fix this before enabling the remote keyguard animation.
if (WindowManagerService.sEnableRemoteKeyguardGoingAwayAnimation
&& topActivity != null) {
topActivity.mRequestForceTransition = true;
}
updateKeyguardSleepToken(DEFAULT_DISPLAY);