Fixed odd accent color for profile image

This commit is contained in:
Prathamesh More 2022-03-15 22:42:52 +05:30
parent 1d7203cbec
commit 9d6d7de1c7
5 changed files with 10 additions and 11 deletions

View file

@ -43,9 +43,7 @@ class WallpaperAccentManager(val context: Context) {
.getWallpaperColors(WallpaperManager.FLAG_SYSTEM)
if (colors != null) {
val primaryColor = colors.primaryColor.toArgb()
if (primaryColor != ThemeStore.wallpaperColor(context)) {
ThemeStore.editTheme(context).wallpaperColor(primaryColor).commit()
}
ThemeStore.editTheme(context).wallpaperColor(context, primaryColor).commit()
}
}
}