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

Skip to content
Commit da21f422 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Scheduler: Prevent removing the last display

unregisterDisplay calls promoteLeaderDisplay, which assumes that there
is at least one RefreshRateSelector remaining. Other Scheduler code also
assumes that there will be at least one display, which is necessary for
there to be a leader.

In SchedulerTest, remove the final call to unregisterDisplay, so we
don't put Scheduler in a bad state. Remove hasRefreshRateSelectors(),
since this condition must be true.

Bug: 241285191
Test: libsurfaceflinger_unittest
Change-Id: I827f20acd6a105d9f99e1ca9a7bfc59e633ab33f
parent 6f5ed5b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment