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

Skip to content
Commit 2ccd4af1 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin Committed by Ale Nijamkin
Browse files

[flexiglass] Prevents crash when disable flags are set

There's a crash when certain disable flags are set. It comes from the
measure policy of SingleShadeMeasurePolicy which assumes that certain
elements are laid out when they're not (because the disable flags makes
those elements disappear in runtime).

This CL only prevents the crash, it doesn't fix the positioning of the
UMO in these cases, that still needs to be tested and fixed properly.
See the test lines for how to fix it properly. This is tracked in
b/379162317.

Bug: 371545613
Test: manually verified that disabling certain disable flags doesn't
crash anymore. The commands used are:
$ adb shell cmd statusbar send-disable-flag quick-settings
$ adb shell cmd statusbar send-disable-flag statusbar-expansion
$ adb shell cmd statusbar send-disable-flag none
Flag: com.android.systemui.scene_container

Change-Id: Ie26bbb743f06e2eb1549e67b9a5a3c7ca0613857
parent 5bc0fe80
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