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

Commit 78c4a242 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: make RefreshRateOverlay a trusted overlay

Bug: 207057942
Test: 1.Settings->System->Developper options->Show refresh rate,open
      2.Open any app for the first time
      3.click the prompt box of permission
Change-Id: I06a3c3df7ca59b319a3906e83c7bb7e9f0f85d32
parent 85bebf4e
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -203,12 +203,13 @@ bool RefreshRateOverlay::createLayer() {
        return false;
    }

    SurfaceComposerClient::Transaction t;
    t.setFrameRate(mSurfaceControl, 0.0f,
    SurfaceComposerClient::Transaction()
            .setFrameRate(mSurfaceControl, 0.0f,
                          static_cast<int8_t>(Layer::FrameRateCompatibility::NoVote),
                   static_cast<int8_t>(scheduler::Seamlessness::OnlySeamless));
    t.setLayer(mSurfaceControl, INT32_MAX - 2);
    t.apply();
                          static_cast<int8_t>(scheduler::Seamlessness::OnlySeamless))
            .setLayer(mSurfaceControl, INT32_MAX - 2)
            .setTrustedOverlay(mSurfaceControl, true)
            .apply();

    return true;
}