Added ability to extract accent color from wallpaper on 8.1+ devices

This commit is contained in:
Prathamesh More 2022-01-17 13:53:25 +05:30
parent 09ad243a14
commit 9d1018c03c
16 changed files with 117 additions and 6 deletions

View file

@ -696,6 +696,9 @@ object PreferenceUtil {
} else {
TopAppBarLayout.AppBarMode.SIMPLE
}
val wallpaperAccent
get() = sharedPreferences.getBoolean(WALLPAPER_ACCENT, VersionUtils.hasOreoMR1() && !VersionUtils.hasS())
}
enum class LyricsType {
REPLACE_LYRICS, OVER_LYRICS