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

Commit b0e46ee6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SurfaceControlActivePictureListener:strict RefBase" into main

parents b5106269 fc630560
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -106,11 +106,13 @@ struct SurfaceControlActivePictureListener : public gui::BnActivePictureListener
    }

    status_t startListening() {
        return SurfaceComposerClient::addActivePictureListener(this);
        return SurfaceComposerClient::addActivePictureListener(
                sp<SurfaceControlActivePictureListener>::fromExisting(this));
    }

    status_t stopListening() {
        return SurfaceComposerClient::removeActivePictureListener(this);
        return SurfaceComposerClient::removeActivePictureListener(
                sp<SurfaceControlActivePictureListener>::fromExisting(this));
    }

protected: