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

Commit 8ae81242 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

SystemUI: Don't create dynamic overlay when monet is disabled

This is needed to fix some accent issues in dialogs and other places which start using dynamic accent based on wallpaper colors
parent 6c0482eb
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -909,9 +909,16 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {

        if (mNeedsOverlayCreation) {
            mNeedsOverlayCreation = false;
            // Create all overlays except dynamic overlay when monet is disabled. This in addition to our previous change fixes the quick settings theme
            if (mIsMonetEnabled) {
                fOverlays = new FabricatedOverlay[]{
                    mSecondaryOverlay, mNeutralOverlay, mDynamicOverlay
                };
            } else {
                fOverlays = new FabricatedOverlay[]{
                    mSecondaryOverlay, mNeutralOverlay
                };
            }
        }

        mThemeManager.applyCurrentUserOverlays(categoryToPackage, fOverlays, currentUser,