Merge "Watchdog and sluggishness due to multiple virtual displays created by third party apps" am: 42116a7ed3 am: 10054ca8cd am: 6914406050 am: f58058473d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2637229 Change-Id: Iab0a891ca814763491afa04d0c1bc20db1cf2a28 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -204,7 +204,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