From 4f31854876da22e6d39bf3124593ac0310503b9c Mon Sep 17 00:00:00 2001 From: LooKeR Date: Mon, 22 Nov 2021 00:09:02 +0530 Subject: [PATCH] Fix: Action Text Color visibility (Closes #124) --- .../kotlin/com/looker/droidify/screen/ProductAdapter.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt b/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt index 7588ea3a..b8c4c97f 100644 --- a/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt +++ b/src/main/kotlin/com/looker/droidify/screen/ProductAdapter.kt @@ -330,14 +330,11 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int) val actionTintNormal = action.context.getColorFromAttr(R.attr.colorSurface) val actionTintCancel = action.context.getColorFromAttr(R.attr.colorError) - val actionTintOnNormal = action.context.getColorFromAttr(android.R.attr.textColorPrimary) + val actionTintOnNormal = action.context.getColorFromAttr(R.attr.colorOnSurface) val actionTintOnCancel = action.context.getColorFromAttr(R.attr.colorOnError) init { - action.apply { - setTextColor(action.context.getColorFromAttr(R.attr.colorOnPrimary)) - height = itemView.resources.sizeScaled(48) - } + action.height = itemView.resources.sizeScaled(48) val (progressIcon, defaultIcon) = Utils.getDefaultApplicationIcons(icon.context) this.progressIcon = progressIcon this.defaultIcon = defaultIcon