Merge "Watchdog and sluggishness due to multiple virtual displays created by third party apps" am: 42116a7ed3 am: 10054ca8cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2637229 Change-Id: I3d10ebe7156656a0b52243489c45377725b40b45 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -200,7 +200,8 @@ class KeyguardController {
|
||||
// handle the snapshot.
|
||||
// - The display state is ON. Because if AOD is not on or pulsing, the display state will
|
||||
// be OFF or DOZE (the path of screen off may have handled it).
|
||||
if (((aodShowing ^ keyguardShowing) || (aodShowing && aodChanged && keyguardChanged))
|
||||
if (displayId == DEFAULT_DISPLAY
|
||||
&& ((aodShowing ^ keyguardShowing) || (aodShowing && aodChanged && keyguardChanged))
|
||||
&& !state.mKeyguardGoingAway && Display.isOnState(
|
||||
mRootWindowContainer.getDefaultDisplay().getDisplayInfo().state)) {
|
||||
mWindowManager.mTaskSnapshotController.snapshotForSleeping(DEFAULT_DISPLAY);
|
||||
|
||||
Reference in New Issue
Block a user