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

Commit c94756d4 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

Change-Id: Ia7e02905e030a1b3ef3841e5b77d49006b764b0f
parents 91329697 44e1d4eb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -296,7 +296,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 */);