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

Commit 0c13eb18 authored by Vishnu Nair's avatar Vishnu Nair Committed by android-build-merger
Browse files

Changed BufferLayer's canReceiveInput to check if its hidden by policy

am: 46698591

Change-Id: I0e1a967619524e8e8632b031294e3ce234230f3e
parents a5d0abd5 46698591
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -35,11 +35,7 @@ bool ContainerLayer::isVisible() const {
    return false;
}

bool ContainerLayer::canReceiveInput() const {
    return !isHiddenByPolicy();
}

void ContainerLayer::setPerFrameData(const sp<const DisplayDevice>&, const ui::Transform&,
                                     const Rect&, int32_t, const ui::Dataspace) {}

} // namespace android
+0 −2
Original line number Diff line number Diff line
@@ -31,8 +31,6 @@ public:
    const char* getTypeId() const override { return "ContainerLayer"; }
    bool isVisible() const override;

    bool canReceiveInput() const override;

    void setPerFrameData(const sp<const DisplayDevice>& display, const ui::Transform& transform,
                         const Rect& viewport, int32_t supportedPerFrameMetadata,
                         const ui::Dataspace targetDataspace) override;
+1 −1
Original line number Diff line number Diff line
@@ -2128,7 +2128,7 @@ std::shared_ptr<compositionengine::Layer> Layer::getCompositionLayer() const {
}

bool Layer::canReceiveInput() const {
    return isVisible();
    return !isHiddenByPolicy();
}

compositionengine::OutputLayer* Layer::findOutputLayerForDisplay(