Downloaded button arrow is back to always white
This commit is contained in:
parent
2d9f19e8db
commit
472ba92fe6
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||||
R.color.divider)
|
R.color.divider)
|
||||||
private val disabledColor = ContextCompat.getColor(context,
|
private val disabledColor = ContextCompat.getColor(context,
|
||||||
R.color.material_on_surface_disabled)
|
R.color.material_on_surface_disabled)
|
||||||
private val primaryColor = context.getResourceColor(android.R.attr.textColorPrimaryInverse)
|
|
||||||
private val downloadedColor = ContextCompat.getColor(context,
|
private val downloadedColor = ContextCompat.getColor(context,
|
||||||
R.color.download)
|
R.color.download)
|
||||||
private val errorColor = ContextCompat.getColor(context,
|
private val errorColor = ContextCompat.getColor(context,
|
||||||
|
@ -95,7 +94,7 @@ class DownloadButton @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||||
download_progress_indeterminate.gone()
|
download_progress_indeterminate.gone()
|
||||||
download_border.setImageDrawable(filledCircle)
|
download_border.setImageDrawable(filledCircle)
|
||||||
download_border.drawable.setTint(downloadedColor)
|
download_border.drawable.setTint(downloadedColor)
|
||||||
download_icon.drawable.setTint(primaryColor)
|
download_icon.drawable.setTint(Color.WHITE)
|
||||||
}
|
}
|
||||||
Download.ERROR -> {
|
Download.ERROR -> {
|
||||||
download_progress.gone()
|
download_progress.gone()
|
||||||
|
|
Reference in a new issue