Merge "Skip task snapshot if display has not been enabled" into sc-dev
This commit is contained in:
@@ -644,7 +644,7 @@ class TaskSnapshotController {
|
|||||||
|
|
||||||
/** Called when the device is going to sleep (e.g. screen off, AOD without screen off). */
|
/** Called when the device is going to sleep (e.g. screen off, AOD without screen off). */
|
||||||
void snapshotForSleeping(int displayId) {
|
void snapshotForSleeping(int displayId) {
|
||||||
if (shouldDisableSnapshots()) {
|
if (shouldDisableSnapshots() || !mService.mDisplayEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final DisplayContent displayContent = mService.mRoot.getDisplayContent(displayId);
|
final DisplayContent displayContent = mService.mRoot.getDisplayContent(displayId);
|
||||||
|
|||||||
Reference in New Issue
Block a user