Fixed odd accent color for profile image
This commit is contained in:
parent
1d7203cbec
commit
9d6d7de1c7
5 changed files with 10 additions and 11 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue