create IconicsDrawable with right color instead of tinting it later (#1127)

This commit is contained in:
Konrad Pozniak 2019-03-16 15:41:41 +01:00 committed by GitHub
parent 7680b1b529
commit ff58960801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -235,9 +235,9 @@ class ListsActivity : BaseActivity(), Injectable, HasSupportFragmentInjector {
.let(this::ListViewHolder) .let(this::ListViewHolder)
.apply { .apply {
val context = nameTextView.context val context = nameTextView.context
val icon = IconicsDrawable(context, GoogleMaterial.Icon.gmd_list).sizeDp(20) val iconColor = ThemeUtils.getColor(context, android.R.attr.textColorTertiary)
val icon = IconicsDrawable(context, GoogleMaterial.Icon.gmd_list).sizeDp(20).color(iconColor)
ThemeUtils.setDrawableTint(context, icon, android.R.attr.textColorTertiary)
nameTextView.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null) nameTextView.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null)
} }
} }