[Now Playing: Fit] Fixed Fit theme button colors

This commit is contained in:
Prathamesh More 2021-12-25 20:55:45 +05:30
parent 27485bea2d
commit 853289a81d
2 changed files with 5 additions and 1 deletions

View file

@ -77,6 +77,10 @@ fun Context.colorControlNormal() = resolveColor(android.R.attr.colorControlNorma
fun Fragment.colorControlNormal() = resolveColor(android.R.attr.colorControlNormal)
fun Context.colorBackground() = resolveColor(android.R.attr.colorBackground)
fun Fragment.colorBackground() = resolveColor(android.R.attr.colorBackground)
fun Context.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)
fun Fragment.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)

View file

@ -128,7 +128,7 @@ class FitPlaybackControlsFragment :
}
override fun setColor(color: MediaNotificationProcessor) {
if (ColorUtil.isColorLight(colorControlNormal())) {
if (ColorUtil.isColorLight(colorBackground())) {
lastPlaybackControlsColor =
MaterialValueHelper.getSecondaryTextColor(requireContext(), true)
lastDisabledPlaybackControlsColor =