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

Skip to content
Commit 5b262efc authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Remove zen_mode_condition from SystemUI layouts

When EnableZenModeDialog was migrated to SettingsLib, a zen_mode_condition
layout was left in SystemUI. When EnableZenModeDialog creates its
content, it inflates R.layout.zen_mode_condition, but its overlaid by
SystemUI.

As part of the color changes for dialogs, the colors and theme set in
the SystemUI version where ones that would work with QuickSettings
theme. However, as this dialog is also inflated in light mode (and QS is
always in dark mode), the internal elements didn't contrast well with
the background.

Given that this layout should have been removed 6 years ago (to only use
the one in SettingsLib), removing it now makes it that the bug doesn't
present (as all the colors are properly set in SettingsLib +
Theme.SystemUI.Dialog).

Test: manual, light and dark mode
Fixes: 297795920
Change-Id: Ie48dd21c5fec4ca9bdd44e382a88750fdc01bb2e
parent cd3d4256
Loading
Loading
Loading
Loading
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