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

Commit 0e0d5aac authored by Juho Ha's avatar Juho Ha Committed by android-build-merger
Browse files

Disable task snapshot when image size is invalid

am: d864b442

Change-Id: Ida2e4a0407fd4731785932d1bbfc97cdbe51822b
parents 4b884096 d864b442
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ class TaskSnapshotController {
        }
        final GraphicBuffer buffer = top.mDisplayContent.screenshotApplicationsToBuffer(top.token,
                -1, -1, false, 1.0f, false, true);
        if (buffer == null) {
        if (buffer == null || buffer.getWidth() <= 1 || buffer.getHeight() <= 1) {
            return null;
        }
        return new TaskSnapshot(buffer, top.getConfiguration().orientation,