Skip to content
Snippets Groups Projects
Verified Commit e8bcd872 authored by Rheygine Medel's avatar Rheygine Medel Committed by Simão Gomes Viana
Browse files

sf: Update mSendUpdateImminent on reset callback


CRs-Fixed: 3215802
Change-Id: I92613a41a0cb9da2ad44e8a2ac803a5533ea6495
Signed-off-by: default avatarSimão Gomes Viana <devel@superboring.dev>
parent 6f522da3
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,8 @@ PowerAdvisor::PowerAdvisor(SurfaceFlinger& flinger)
: mPowerHal(std::make_unique<power::PowerHalController>()), mFlinger(flinger) {
if (getUpdateTimeout() > 0ms) {
mScreenUpdateTimer.emplace("UpdateImminentTimer", getUpdateTimeout(),
/* resetCallback */ nullptr,
/* resetCallback */
[this] { mSendUpdateImminent.store(false); },
/* timeoutCallback */
[this] {
while (true) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment