Merge "Watchdog and sluggishness due to multiple virtual displays created by third party apps" am: 42116a7ed3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2637229 Change-Id: Ia148c857a104e655ba5720fc703c9b7c0d7096be 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