Recreate taskbar when dark mode changes

Also dispatch sysui flags to all controllers upon recreate, not just NavbarButtonsViewController. Additionally, tell the controllers to skip the animation due to the flag changes if it's fromInit.

Test: Enable themed icons, switch dark theme in quick settings, ensure taskbar updates
Fixes: 204403933
Change-Id: Ic43a50cf0456175f9beba5c29360440f051cbd2d
This commit is contained in:
Tony Wickham
2021-10-28 16:39:32 -07:00
parent 00841576d4
commit 5a5a926945
6 changed files with 28 additions and 17 deletions

View File

@@ -79,7 +79,7 @@ public class TaskbarControllers {
*/
public void init(TaskbarSharedState sharedState) {
taskbarDragController.init(this);
navbarButtonsViewController.init(this, sharedState);
navbarButtonsViewController.init(this);
if (taskbarActivityContext.isThreeButtonNav()) {
rotationButtonController.init();
}