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

Commit a88b7a97 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Skip drawing snapshot if we can't create the buffer." into oc-mr1-dev am: 44e1d4eb

am: c94756d4

Change-Id: I5c022dce41fa31b59c086ace5bc527400a6f9ea3
parents 714be017 c94756d4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -294,7 +294,9 @@ class TaskSnapshotController {
        decorPainter.drawDecors(c, null /* statusBarExcludeFrame */);
        node.end(c);
        final Bitmap hwBitmap = ThreadedRenderer.createHardwareBitmap(node, width, height);

        if (hwBitmap == null) {
            return null;
        }
        return new TaskSnapshot(hwBitmap.createGraphicBufferHandle(),
                topChild.getConfiguration().orientation, mainWindow.mStableInsets,
                ActivityManager.isLowRamDeviceStatic() /* reduced */, 1.0f /* scale */);