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

Commit 05eec2f9 authored by Merissa Mitchell's avatar Merissa Mitchell
Browse files

[WindowDecor] Trigger relayout when system theme changes.

This CL implements onThemeChanged for DesktopModeWindowDecorViewModel so
that we can trigger a relayout when the system color changes to update
the header color for tasks that are already open. A boolean is also
added to WindowDecoration so that the AppHeaderViewHolder will be
recreated with the new context -- this will update the cached color
scheme accordingly.

Recall: http://recall/clips/4d457d63-3c90-41d9-9118-55faf0eac95c

Bug: 412489198
Flag: EXEMPT bugfix
Test: atest WMShellUnitTests:com.android.wm.shell.windowdecor
Test: Manual - navigate to Wallpaper & Style in Settings > change the
Home screen color > observe that the header changes color along with the
app content

Change-Id: I1ebabd7e16d0fa4a71f889564781d28b1b303596
parent 15a444a9
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