Trigger theme change if supportsDarkText is switching.
Change-Id: Id5ec0429b5fb94d742dfac093263144f71f0d6b7
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