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

Commit 43d718a6 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6332289 from 58e1ce0b to qt-qpr3-release

Change-Id: Iae3f3f57c29506d81fa6483538e42e381d454851
parents ebfb2a83 58e1ce0b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -200,9 +200,10 @@ RegionSamplingThread::~RegionSamplingThread() {

void RegionSamplingThread::addListener(const Rect& samplingArea, const sp<IBinder>& stopLayerHandle,
                                       const sp<IRegionSamplingListener>& listener) {
    wp<Layer> stopLayer = stopLayerHandle != nullptr
            ? static_cast<Layer::Handle*>(stopLayerHandle.get())->owner
            : nullptr;
    wp<Layer> stopLayer;
    if (stopLayerHandle != nullptr && stopLayerHandle->localBinder() != nullptr) {
        stopLayer = static_cast<Layer::Handle*>(stopLayerHandle.get())->owner;
    }

    sp<IBinder> asBinder = IInterface::asBinder(listener);
    asBinder->linkToDeath(this);