Downloaded button arrow is back to always white

This commit is contained in:
Jay 2020-04-14 15:38:17 -04:00
parent 2d9f19e8db
commit 472ba92fe6

View file

@ -21,7 +21,6 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
R.color.divider)
private val disabledColor = ContextCompat.getColor(context,
R.color.material_on_surface_disabled)
private val primaryColor = context.getResourceColor(android.R.attr.textColorPrimaryInverse)
private val downloadedColor = ContextCompat.getColor(context,
R.color.download)
private val errorColor = ContextCompat.getColor(context,
@ -95,7 +94,7 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
download_progress_indeterminate.gone()
download_border.setImageDrawable(filledCircle)
download_border.drawable.setTint(downloadedColor)
download_icon.drawable.setTint(primaryColor)
download_icon.drawable.setTint(Color.WHITE)
}
Download.ERROR -> {
download_progress.gone()