From ff589608014df748f2b7d2d111777e915cb00313 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sat, 16 Mar 2019 15:41:41 +0100 Subject: [PATCH] create IconicsDrawable with right color instead of tinting it later (#1127) --- app/src/main/java/com/keylesspalace/tusky/ListsActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ListsActivity.kt b/app/src/main/java/com/keylesspalace/tusky/ListsActivity.kt index 86d14335e..b0eb29d9c 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ListsActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/ListsActivity.kt @@ -235,9 +235,9 @@ class ListsActivity : BaseActivity(), Injectable, HasSupportFragmentInjector { .let(this::ListViewHolder) .apply { 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) } }