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

Commit 6d55202c authored by Mario Bertschler's avatar Mario Bertschler
Browse files

Trigger theme change if supportsDarkText is switching.

Change-Id: Id5ec0429b5fb94d742dfac093263144f71f0d6b7
parent 1ab7f3bf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -63,8 +63,9 @@ public class WallpaperColorInfo implements WallpaperManagerCompat.OnColorsChange
    public void onColorsChanged(WallpaperColorsCompat colors, int which) {
        if (which == FLAG_SYSTEM) {
            boolean wasDarkTheme = mIsDark;
            boolean didSupportDarkText = mSupportsDarkText;
            update(colors);
            notifyChange(wasDarkTheme != mIsDark);
            notifyChange(wasDarkTheme != mIsDark || didSupportDarkText != mSupportsDarkText);
        }
    }