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

Commit fc630560 authored by Steven Moreland's avatar Steven Moreland
Browse files

SurfaceControlActivePictureListener:strict RefBase

More explicit checks, in preparation for enabling strict
RefBase here in libandroid_runtime on ASOP.

(ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION)

Bug: 393013610
Test: TH
Change-Id: Ia8208f3a6a9f9f8287fbc4a9da3a01ae95fbafe4
parent 5b2586ab
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: