Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c80d3b79 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Skip task snapshot if display has not been enabled" into sc-dev am: c8bbb99a

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

Change-Id: I98c207ee2ffaae1afa8f2b037a86be5e594a8d33
parents c67eef64 c8bbb99a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -644,7 +644,7 @@ class TaskSnapshotController {

    /** Called when the device is going to sleep (e.g. screen off, AOD without screen off). */
    void snapshotForSleeping(int displayId) {
        if (shouldDisableSnapshots()) {
        if (shouldDisableSnapshots() || !mService.mDisplayEnabled) {
            return;
        }
        final DisplayContent displayContent = mService.mRoot.getDisplayContent(displayId);