Replace some old color attribute usages

This commit is contained in:
arkon
2020-04-19 11:13:04 -04:00
parent c88265ac04
commit 11e10f6eff
11 changed files with 40 additions and 53 deletions
@@ -1,6 +1,7 @@
package eu.kanade.tachiyomi.ui.recent.updates
import android.view.View
import androidx.core.content.ContextCompat
import com.bumptech.glide.load.engine.DiskCacheStrategy
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.download.model.Download
@@ -25,15 +26,8 @@ import kotlinx.android.synthetic.main.updates_item.manga_title
class UpdatesHolder(private val view: View, private val adapter: UpdatesAdapter) :
BaseFlexibleViewHolder(view, adapter) {
/**
* Color of read chapter
*/
private var readColor = view.context.getResourceColor(android.R.attr.textColorHint)
/**
* Color of unread chapter
*/
private var unreadColor = view.context.getResourceColor(android.R.attr.textColorPrimary)
private var readColor = ContextCompat.getColor(view.context, R.color.material_on_surface_disabled)
private var unreadColor = view.context.getResourceColor(R.attr.colorOnSurface)
/**
* Currently bound item.