Trigger theme change if supportsDarkText is switching.

am: 6d55202c9b

Change-Id: I36e55960b384ad2d7b927cddf52078c387d4dfcf
This commit is contained in:
Mario Bertschler
2017-06-08 22:32:21 +00:00
committed by android-build-merger
@@ -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);
}
}