Trigger theme change if supportsDarkText is switching.
am: 6d55202c9b
Change-Id: I36e55960b384ad2d7b927cddf52078c387d4dfcf
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user