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

Unverified Commit e08d5420 authored by Robin Lee's avatar Robin Lee Committed by Kevin F. Haggerty
Browse files

Initialize DrawingState::trustedOverlay to false in constructor

To avoid it being initialised to true randomly.

Bug: 199483370
Bug: 196389741
Bug: 218605327
Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
(cherry picked from commit edb375df)
(cherry picked from commit b4a2d3a7)
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
parent 7cb596e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ Layer::Layer(const LayerCreationArgs& args)
    mDrawingState.postTime = -1;
    mDrawingState.destinationFrame.makeInvalid();
    mDrawingState.dropInputMode = gui::DropInputMode::NONE;
    mDrawingState.isTrustedOverlay = false;

    if (args.flags & ISurfaceComposerClient::eNoColorFill) {
        // Set an invalid color so there is no color fill.