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

Commit 172abd36 authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "Check SpriteIcon validity before drawing" into main

parents d7706942 205e0f4a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
namespace android {

bool SpriteIcon::draw(sp<Surface> surface) const {
    LOG_ALWAYS_FATAL_IF(!isValid(), "Cannot draw SpriteIcon: not valid");

    ANativeWindow_Buffer outBuffer;
    status_t status = surface->lock(&outBuffer, NULL);
    if (status) {