Trigger theme change if supportsDarkText is switching.

Change-Id: Id5ec0429b5fb94d742dfac093263144f71f0d6b7
This commit is contained in:
Mario Bertschler
2017-06-08 15:12:03 -07:00
parent 1ab7f3bf24
commit 6d55202c9b
@@ -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);
}
}