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

Skip to content
Commit 73fa2665 authored by Alec Mouri's avatar Alec Mouri
Browse files

Fix crash in Flattener dumpsys

When there are multiple connected displays where only one of them is
powered on, then caching is enabled on all displays but may
historically only been used on one. This means that mInitialLayerCounts
may be empty, which breaks retrieving the max element with
std::max_element. Add an emptiness check to sidestep that issue.

Bug: 187736454
Test: dumpsys SurfaceFlinger --planner
Change-Id: Iee917bb75c89e47f92f3440dd58bc58755e1f7b4
parent 75a9dc09
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